# Uncategorized

**URL:** https://discourse.itk.org/c/uncategorized/1.md?no_subcategories=false&page=7

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

**Page:** 8

---

## [Modernize this code](https://discourse.itk.org/t/modernize-this-code/4207)

<div class="topic-metadata">

**Author:** [@alessandromauri](https://discourse.itk.org/u/alessandromauri)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 11:18am UTC](https://discourse.itk.org/t/modernize-this-code/4207 "2021-06-14T11:18:54Z")

</div>

hello, i have this old code and io want to adapt to the newer ITK, typedef itk::Statistics::ScalarImageToListAdaptor\<ImageType\> ImageListSample; typedef itk::Statistics::ScalarImageToListAdaptor\<MaskImageType\> MaskLi…

---

## [Perform graph cut](https://discourse.itk.org/t/perform-graph-cut/3038)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 10\
**Last updated:** [June 13, 2021, 8:33pm UTC](https://discourse.itk.org/t/perform-graph-cut/3038 "2021-06-13T20:33:09Z")

</div>

I intend to use graph cut segmentation on a VTK volume, and I saw few examples on github. But all these examples are using images (background and foreground images) as masking for graph cut … what should I use for VTK vo…

---

## [Errore with some old functions](https://discourse.itk.org/t/errore-with-some-old-functions/4198)

<div class="topic-metadata">

**Author:** [@alessandromauri](https://discourse.itk.org/u/alessandromauri)\
**Replies:** 14\
**Last updated:** [June 11, 2021, 4:11pm UTC](https://discourse.itk.org/t/errore-with-some-old-functions/4198 "2021-06-11T16:11:16Z")

</div>

Hello everyone, i have this code on a macos on 2008. I’m trying to use it now with a windows pc but some problem occurred. (on red the error) Thanks in advance

---

## [How to merge two 3D label images ?](https://discourse.itk.org/t/how-to-merge-two-3d-label-images/4149)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.itk.org/u/Hugo)\
**Replies:** 4\
**Last updated:** [May 24, 2021, 5:30pm UTC](https://discourse.itk.org/t/how-to-merge-two-3d-label-images/4149 "2021-05-24T17:30:23Z")

</div>

I have two sources for labels on the same scan. img1 contains labels \[0, 1, 4\] and img2 contains labels \[0, 2, 3\]. Those two images are coregistered, and I’d like to transfer the labels from img2 to img1. So I have on…

---

## [Codes for registration framework for fast alignment of 2D and 3D](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144)

<div class="topic-metadata">

**Author:** [@amitjaiswal](https://discourse.itk.org/u/amitjaiswal)\
**Replies:** 4\
**Last updated:** [May 22, 2021, 10:41am UTC](https://discourse.itk.org/t/codes-for-registration-framework-for-fast-alignment-of-2d-and-3d/4144 "2021-05-22T10:41:37Z")

</div>

Registration framework for fast alignment of 2D and 3D intra and inter-modality images using rigid or deformable transformations. Is the code available for the second example (animation) given at https://simpleitk.org/ …

---

## [How to get the window width and window level of DICOM file, and set VR data to display only bones according to the window width and window level.](https://discourse.itk.org/t/how-to-get-the-window-width-and-window-level-of-dicom-file-and-set-vr-data-to-display-only-bones-according-to-the-window-width-and-window-level/4045)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 1:38pm UTC](https://discourse.itk.org/t/how-to-get-the-window-width-and-window-level-of-dicom-file-and-set-vr-data-to-display-only-bones-according-to-the-window-width-and-window-level/4045 "2021-04-19T13:38:23Z")

</div>

How to get the window width and window level of DICOM file, and set VR data to display only bones according to the window width and window level.

---

## [SimpleITK Pip install of specific version](https://discourse.itk.org/t/simpleitk-pip-install-of-specific-version/3985)

<div class="topic-metadata">

**Author:** [@Nick\_Rubert](https://discourse.itk.org/u/Nick_Rubert)\
**Replies:** 1\
**Last updated:** [March 25, 2021, 8:11pm UTC](https://discourse.itk.org/t/simpleitk-pip-install-of-specific-version/3985 "2021-03-25T20:11:08Z")

</div>

Hi message board, Is there a command to let me install a specific version of SimpleITK with pip. I would like to install v 1.2.4 because I’m looking for the old registration framework that used discreteGaussianImageFil…

---

## [Finding unmerged commit](https://discourse.itk.org/t/finding-unmerged-commit/3975)

<div class="topic-metadata">

**Author:** [@Soren\_Christensen](https://discourse.itk.org/u/Soren_Christensen)\
**Replies:** 4\
**Last updated:** [March 23, 2021, 8:51pm UTC](https://discourse.itk.org/t/finding-unmerged-commit/3975 "2021-03-23T20:51:28Z")

</div>

Hi, I have a problem getting RayCastInterpolateImageFunction to work with ImageRegistrationMethodv4. It works fine if I just attach it to a resampler and use it that way. I see someone had an issue here and Matt McCor…

---

## [Multi center Series identification](https://discourse.itk.org/t/multi-center-series-identification/3960)

<div class="topic-metadata">

**Author:** [@Stephan\_Hahn1](https://discourse.itk.org/u/Stephan_Hahn1)\
**Replies:** 2\
**Last updated:** [March 16, 2021, 2:18pm UTC](https://discourse.itk.org/t/multi-center-series-identification/3960 "2021-03-16T14:18:51Z")

</div>

Hello the community :slight\_smile: I have a small question. I received images from multiple centers containing one or more series. Actually, I can identify the series using the series description. But I think (hope) th…

---

## [Resample small mask](https://discourse.itk.org/t/resample-small-mask/3950)

<div class="topic-metadata">

**Author:** [@vankhoa21991](https://discourse.itk.org/u/vankhoa21991)\
**Replies:** 2\
**Last updated:** [March 10, 2021, 3:40pm UTC](https://discourse.itk.org/t/resample-small-mask/3950 "2021-03-10T15:40:12Z")

</div>

Hello, I would like to resample the volume and mask to a fixed spacing using simpleitk in python, but after I do that, the mask of small regions disappears completely. Do you have any idea about this phenomenon? I trie…

---

## [Extracting Bounding Box information from an image](https://discourse.itk.org/t/extracting-bounding-box-information-from-an-image/3883)

<div class="topic-metadata">

**Author:** [@Stefan\_Radonjic](https://discourse.itk.org/u/Stefan_Radonjic)\
**Replies:** 4\
**Last updated:** [March 8, 2021, 6:47pm UTC](https://discourse.itk.org/t/extracting-bounding-box-information-from-an-image/3883 "2021-03-08T18:47:53Z")

</div>

HI! Is there a way to load nifty image and extract its bounding box coordinates from it? If I am not mistaken, bounding box within nifty image is called largest possible region in ITK, correct? I would like to measure h…

---

## [Different rounding behaviour in itk::MetaImageIO between debug and release](https://discourse.itk.org/t/different-rounding-behaviour-in-itk-metaimageio-between-debug-and-release/3931)

<div class="topic-metadata">

**Author:** [@marco\_giordano](https://discourse.itk.org/u/marco_giordano)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 9:22pm UTC](https://discourse.itk.org/t/different-rounding-behaviour-in-itk-metaimageio-between-debug-and-release/3931 "2021-03-05T21:22:42Z")

</div>

Hi there, I am using ITK as a library in my code and I experience a different rounding behaviour in debug and release when writing an image to disk. Basically I create a 3D image by converting it from vtk … ImageType…

---

## [ITK functions don't work properly when used inside Tensorflow data multiprocessing pipeline](https://discourse.itk.org/t/itk-functions-dont-work-properly-when-used-inside-tensorflow-data-multiprocessing-pipeline/3519)

<div class="topic-metadata">

**Author:** [@goncinious](https://discourse.itk.org/u/goncinious)\
**Replies:** 5\
**Last updated:** [March 5, 2021, 1:22pm UTC](https://discourse.itk.org/t/itk-functions-dont-work-properly-when-used-inside-tensorflow-data-multiprocessing-pipeline/3519 "2021-03-05T13:22:20Z")

</div>

Description The code below implements a Tensorflow (TF) data pipeline that uses ITK functions for processing the inputs. It seems that ITK modules can’t be properly accessed when they’re wrapped in a Tensorflow py\_funct…

---

## [GPUBinaryMorphology problem](https://discourse.itk.org/t/gpubinarymorphology-problem/3923)

<div class="topic-metadata">

**Author:** [@junqiangchen](https://discourse.itk.org/u/junqiangchen)\
**Replies:** 3\
**Last updated:** [March 4, 2021, 1:46am UTC](https://discourse.itk.org/t/gpubinarymorphology-problem/3923 "2021-03-04T01:46:54Z")

</div>

hi, i use BinaryMorphology with cpu,such as binary open,binary close operation in 3d medical image,but it’s very slowly,so i want use GPUBinaryMorphology to improve computational efficiency,and i find the link https://g…

---

## [How to complie itk4.13.2 add the ITK-\>InsightToolkit-4.13.2-\>Modules-\>Compatibility module?](https://discourse.itk.org/t/how-to-complie-itk4-13-2-add-the-itk-insighttoolkit-4-13-2-modules-compatibility-module/3911)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 2\
**Last updated:** [February 27, 2021, 2:28am UTC](https://discourse.itk.org/t/how-to-complie-itk4-13-2-add-the-itk-insighttoolkit-4-13-2-modules-compatibility-module/3911 "2021-02-27T02:28:34Z")

</div>

---

## [How to complie itksnap project using itk-4.13.2?](https://discourse.itk.org/t/how-to-complie-itksnap-project-using-itk-4-13-2/3905)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [February 25, 2021, 4:51pm UTC](https://discourse.itk.org/t/how-to-complie-itksnap-project-using-itk-4-13-2/3905 "2021-02-25T16:51:46Z")

</div>

when i complie the itksnap lasted version, it show link errors like flows, what lib i need? \>itksnapui\_model.lib(PolygonDrawingModel.obj) : error LNK2019: unresolved external symbol "\_\_declspec(dllimport) protected: \_\_c…

---

## [How extract bone from volume image?](https://discourse.itk.org/t/how-extract-bone-from-volume-image/3902)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [February 25, 2021, 4:50pm UTC](https://discourse.itk.org/t/how-extract-bone-from-volume-image/3902 "2021-02-25T16:50:44Z")

</div>

How extract bone from volume image like itksnap? Any suggustion?

---

## [functional interface for filters? SimpleITK](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 3\
**Last updated:** [February 24, 2021, 8:21pm UTC](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895 "2021-02-24T20:21:52Z")

</div>

Hi! What is the difference between sitk.BinaryErodeImageFilter and sitk.BinaryErode? Where can I find more documentation about this? If I remember correctly this is a functional interface for filters? Thanks, Diego

---

## [How to speed itk::RescaleIntensityImageFilter ?](https://discourse.itk.org/t/how-to-speed-itk-rescaleintensityimagefilter/3889)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [February 24, 2021, 5:19pm UTC](https://discourse.itk.org/t/how-to-speed-itk-rescaleintensityimagefilter/3889 "2021-02-24T17:19:42Z")

</div>

typedef signed short InputPixelType; typedef unsigned char OutputPixelType; typedef itk::Image\<InputPixelType, 3\> InputImageType; typedef itk::Image\<OutputPixelType, 3\> OutputImageType; using RescaleFilterType = i…

---

## [How to use MakeOutput() in class which derives from ProcessObject](https://discourse.itk.org/t/how-to-use-makeoutput-in-class-which-derives-from-processobject/3785)

<div class="topic-metadata">

**Author:** [@Stefan\_Radonjic](https://discourse.itk.org/u/Stefan_Radonjic)\
**Replies:** 2\
**Last updated:** [February 19, 2021, 10:13am UTC](https://discourse.itk.org/t/how-to-use-makeoutput-in-class-which-derives-from-processobject/3785 "2021-02-19T10:13:14Z")

</div>

I had a class which was deriving from ImageToImage filter and in its constructor I was setting Inputs and Outputs in the following manner: this-\>SetPrimaryInputName("BaselineImage"); this-\>AddRequiredInputName("Baseline…

---

## [Compiling CTK with ITK activated fails.](https://discourse.itk.org/t/compiling-ctk-with-itk-activated-fails/3855)

<div class="topic-metadata">

**Author:** [@al-sabr](https://discourse.itk.org/u/al-sabr)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 9:20pm UTC](https://discourse.itk.org/t/compiling-ctk-with-itk-activated-fails/3855 "2021-02-10T21:20:57Z")

</div>

Thread reference : https://github.com/commontk/CTK/issues/949

---

## [ITK 5.1.2 Python XArray to image bug](https://discourse.itk.org/t/itk-5-1-2-python-xarray-to-image-bug/3760)

<div class="topic-metadata">

**Author:** [@Nick\_Rubert](https://discourse.itk.org/u/Nick_Rubert)\
**Replies:** 4\
**Last updated:** [February 9, 2021, 2:48pm UTC](https://discourse.itk.org/t/itk-5-1-2-python-xarray-to-image-bug/3760 "2021-02-09T14:48:03Z")

</div>

Hi message board, I’m trying to create a script in Python where I create a cine clip of a 3D volume. I want to make an itk image out of a 4D x array with data labels ‘x’, ‘y’, ‘z’, ‘t’. I made a simple script where I r…

---

## [fail to build itk 5.1.1 with gcc 10 on ArchLinux](https://discourse.itk.org/t/fail-to-build-itk-5-1-1-with-gcc-10-on-archlinux/3571)

<div class="topic-metadata">

**Author:** [@hubutui](https://discourse.itk.org/u/hubutui)\
**Replies:** 5\
**Last updated:** [January 29, 2021, 7:28pm UTC](https://discourse.itk.org/t/fail-to-build-itk-5-1-1-with-gcc-10-on-archlinux/3571 "2021-01-29T19:28:20Z")

</div>

According to this post, building itk 5.1.1 with gcc 10 is supported now. However, I failed to build it on ArchLinux, gcc 10.2.0. My cmake configuration: cmake -B build -S "ITK-5.1.1" \\ -DBUILD\_TESTING=OFF \\ -DBUILD…

---

## [Bspline Converging too fast](https://discourse.itk.org/t/bspline-converging-too-fast/3778)

<div class="topic-metadata">

**Author:** [@machadoL](https://discourse.itk.org/u/machadoL)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 1:38am UTC](https://discourse.itk.org/t/bspline-converging-too-fast/3778 "2021-01-20T01:38:59Z")

</div>

Hello, I am performing a two-stage registration, being the last stage a deformable one. The deformable stage uses the itkLBFGSBOptimizerv4.h optimizer. The deformable stage is converging too fast and certainly with no…

---

## [Apple Silicon/M1 Nightly Build](https://discourse.itk.org/t/apple-silicon-m1-nightly-build/3758)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 4\
**Last updated:** [January 15, 2021, 10:19pm UTC](https://discourse.itk.org/t/apple-silicon-m1-nightly-build/3758 "2021-01-15T22:19:56Z")

</div>

I have acquired an Apple Silicon mac system and I am currently trying to build ITK as a native ARM64 library and running into compile errors. Would it be beneficial to the ITK developers to setup this machine as a nightl…

---

## [How to set source to detector distance](https://discourse.itk.org/t/how-to-set-source-to-detector-distance/2984)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.itk.org/u/isuruwi)\
**Replies:** 5\
**Last updated:** [January 13, 2021, 2:38pm UTC](https://discourse.itk.org/t/how-to-set-source-to-detector-distance/2984 "2021-01-13T14:38:43Z")

</div>

Hi, I’m currently looking GetDRRSiddonJacobsRayTracing \[1\] to generate DRR images from 3D-CT volumes. Does this example have a way to set source to detector distance ? If so can you elaborate with an example. \[1\] htt…

---

## [Build Error when using -DCMAKE\_CXX\_FLAGS\_DEBUG="/MTd" flag in C++](https://discourse.itk.org/t/build-error-when-using-dcmake-cxx-flags-debug-mtd-flag-in-c/3748)

<div class="topic-metadata">

**Author:** [@viki](https://discourse.itk.org/u/viki)\
**Replies:** 5\
**Last updated:** [January 12, 2021, 5:39pm UTC](https://discourse.itk.org/t/build-error-when-using-dcmake-cxx-flags-debug-mtd-flag-in-c/3748 "2021-01-12T17:39:15Z")

</div>

Hi, I am facing build error, when using -DCMAKE\_CXX\_FLAGS\_DEBUG="/MTd" . cmake\_code: cmake …\\ITK -DCMAKE\_CXX\_FLAGS\_RELEASE="/MT" -DCMAKE\_CXX\_FLAGS\_DEBUG="/MTd" -DITK\_SKIP\_PATH\_LENGTH\_CHECKS=ON -DModule\_ITKIOGDCM=OFF -…

---

## [Read Transform - Apply to VersorRigid3DTransform](https://discourse.itk.org/t/read-transform-apply-to-versorrigid3dtransform/3737)

<div class="topic-metadata">

**Author:** [@gattia](https://discourse.itk.org/u/gattia)\
**Replies:** 6\
**Last updated:** [December 30, 2020, 4:36pm UTC](https://discourse.itk.org/t/read-transform-apply-to-versorrigid3dtransform/3737 "2020-12-30T16:36:06Z")

</div>

I’ve been trying to read a transform from disk (VersorRigid3DTransform saved previously) and then feed it into the VersorRigid3DTransform class so that I can get access to the original parameters like: Matrix, Translatio…

---

## [How to achieve the following segmentation effect:](https://discourse.itk.org/t/how-to-achieve-the-following-segmentation-effect/3733)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 2\
**Last updated:** [December 28, 2020, 10:54pm UTC](https://discourse.itk.org/t/how-to-achieve-the-following-segmentation-effect/3733 "2020-12-28T22:54:10Z")

</div>

How to achieve the following segmentation effect:

---

## [How to show bones only?](https://discourse.itk.org/t/how-to-show-bones-only/3698)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 2\
**Last updated:** [December 28, 2020, 5:57am UTC](https://discourse.itk.org/t/how-to-show-bones-only/3698 "2020-12-28T05:57:17Z")

</div>

I have an image sequence now, how can only the bones be displayed after 3D reconstruction like the RadiAnt DICOM Viewer?

[Previous page](https://discourse.itk.org/c/uncategorized/1.md?no_subcategories=false&page=6)

[Next page](https://discourse.itk.org/c/uncategorized/1.md?no_subcategories=false&page=8)
