# Latest

**URL:** https://discourse.itk.org/latest.md?page=54

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

**Page:** 55

---

## [Using LabelIntensityStatisticsImageFilter in SimpleITK](https://discourse.itk.org/t/using-labelintensitystatisticsimagefilter-in-simpleitk/3910)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 6\
**Last updated:** [March 2, 2021, 9:52pm UTC](https://discourse.itk.org/t/using-labelintensitystatisticsimagefilter-in-simpleitk/3910 "2021-03-02T21:52:48Z")

</div>

Hi! I am looking for an example of how to use LabelIntensityStatisticsImageFilter, to get stats from my connected components. I have this code: cc = sitk.ConnectedComponentsImageFilter() im\_cc = cc.Execute(image) sta…

---

## [Link C++ library into cmake project](https://discourse.itk.org/t/link-c-library-into-cmake-project/3886)

<div class="topic-metadata">

**Author:** [@PauloFavero](https://discourse.itk.org/u/PauloFavero)\
**Replies:** 6\
**Last updated:** [March 2, 2021, 10:55am UTC](https://discourse.itk.org/t/link-c-library-into-cmake-project/3886 "2021-03-02T10:55:14Z")

</div>

Hello everyone, I created an MVC in a python notebook and then I want to translate it to C++. In order to do that, I followed the building instructions and I successfully compiled simpeITK. I am using CLion as an IDE. …

---

## [Help with curve fitting pls](https://discourse.itk.org/t/help-with-curve-fitting-pls/3918)

<div class="topic-metadata">

**Author:** [@Erol\_Cimen](https://discourse.itk.org/u/Erol_Cimen)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 2:41am UTC](https://discourse.itk.org/t/help-with-curve-fitting-pls/3918 "2021-03-02T02:41:55Z")

</div>

Does anyone know how to fit a curve to a series of points with itk? I currently have a cost function and a Levenberg-Marquad optimizer, but I have no idea how to get the cost function to work - I can’t find documentatio…

---

## [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>

---

## [Visualize 2D transform](https://discourse.itk.org/t/visualize-2d-transform/3896)

<div class="topic-metadata">

**Author:** [@rogertrullo](https://discourse.itk.org/u/rogertrullo)\
**Replies:** 5\
**Last updated:** [February 26, 2021, 3:04pm UTC](https://discourse.itk.org/t/visualize-2d-transform/3896 "2021-02-26T15:04:39Z")

</div>

Hi all, I am using SimpleITK to perform non rigid registration (bsplines). I am also using 3d Slicer to visualize the produced transform. Now the transform .tfm file is only read by slicer if it’s a 3d transform and not…

---

## [How to perform rigid registration on 3D volumes, but apply transform on single planes?](https://discourse.itk.org/t/how-to-perform-rigid-registration-on-3d-volumes-but-apply-transform-on-single-planes/3912)

<div class="topic-metadata">

**Author:** [@jingxuan](https://discourse.itk.org/u/jingxuan)\
**Replies:** 1\
**Last updated:** [February 26, 2021, 1:33pm UTC](https://discourse.itk.org/t/how-to-perform-rigid-registration-on-3d-volumes-but-apply-transform-on-single-planes/3912 "2021-02-26T13:33:18Z")

</div>

Hello I was able to perform rigid registration on 2 3D volumes and was able to apply those transforms to the 3D moving image. The results look great. I would now however like to apply those transforms to single planes …

---

## [reporting broken links](https://discourse.itk.org/t/reporting-broken-links/3900)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 4\
**Last updated:** [February 26, 2021, 3:45am UTC](https://discourse.itk.org/t/reporting-broken-links/3900 "2021-02-26T03:45:40Z")

</div>

Hi ITK’ers, Just thought of reporting this: https://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/Python\_html/05\_Results\_Visualization.html The list of links in that page (at the top of the page) is broken. …

---

## [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?

---

## [Creating a module group with custom modules not compiling for ITK 4.13](https://discourse.itk.org/t/creating-a-module-group-with-custom-modules-not-compiling-for-itk-4-13/3906)

<div class="topic-metadata">

**Author:** [@al-sabr](https://discourse.itk.org/u/al-sabr)\
**Replies:** 0\
**Last updated:** [February 25, 2021, 10:41am UTC](https://discourse.itk.org/t/creating-a-module-group-with-custom-modules-not-compiling-for-itk-4-13/3906 "2021-02-25T10:41:21Z")

</div>

I tried the same exercise on ITK 5.1+ and was able to have a successful compilation. I had to downgrade to ITK 4.13 and the same work doesn’t compile because of linking error. I’m wondering if there’s any difference betw…

---

## [Working with label maps](https://discourse.itk.org/t/working-with-label-maps/3901)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 8:41pm UTC](https://discourse.itk.org/t/working-with-label-maps/3901 "2021-02-24T20:41:49Z")

</div>

Hi! I am wondering if I can use Label Maps to get simple stats of my connected components. I have a binary image img and I have done this: cc = sitk.ConnectedComponentImageFilter() img2 = cc.Execute(img) This giv…

---

## [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

---

## [ITKMontage and Regular Grid Montages Requirement](https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 6:22pm UTC](https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884 "2021-02-24T18:22:21Z")

</div>

Is there a requirement that the ITKMontage filters require a montage on a regular grid? And by that I mean if I have a montage that is 20 Tiles Wide by 10 Tiles High but let’s say that the each of the corner tile images …

---

## [Proper way to flip using AffineTransform with SimpleITK](https://discourse.itk.org/t/proper-way-to-flip-using-affinetransform-with-simpleitk/3898)

<div class="topic-metadata">

**Author:** [@bobdark](https://discourse.itk.org/u/bobdark)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 5:34pm UTC](https://discourse.itk.org/t/proper-way-to-flip-using-affinetransform-with-simpleitk/3898 "2021-02-24T17:34:35Z")

</div>

I’m trying to flip a 3d image using AffineTransform (I have to support multiple possible modifications to a 3d image, like rotation and flipping, so I’m trying to represent them as matrices) and it seems that when I appl…

---

## [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…

---

## [SimpleITK BinaryDilateImageFilter](https://discourse.itk.org/t/simpleitk-binarydilateimagefilter/3894)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 1\
**Last updated:** [February 24, 2021, 1:59pm UTC](https://discourse.itk.org/t/simpleitk-binarydilateimagefilter/3894 "2021-02-24T13:59:13Z")

</div>

Hi :wave: Where can I find an example of BinaryDilateImageFilter in SimpleITK? In particular, how to set the structuring element? Thanks, Diego

---

## [Difference between distance measures](https://discourse.itk.org/t/difference-between-distance-measures/3892)

<div class="topic-metadata">

**Author:** [@blizzardboi\_2020](https://discourse.itk.org/u/blizzardboi_2020)\
**Replies:** 3\
**Last updated:** [February 24, 2021, 12:42am UTC](https://discourse.itk.org/t/difference-between-distance-measures/3892 "2021-02-24T00:42:02Z")

</div>

Hello guys. I am trying to measure the similarity measures between a reference binary ground truth and a segmented binary volume. What are signed surface to surface distance, & unsigned surface to surface distance? Are t…

---

## [Missing Examples ImportPixelBufferIntoAnImage/Code.py, and WRAP\_PYTHON question](https://discourse.itk.org/t/missing-examples-importpixelbufferintoanimage-code-py-and-wrap-python-question/3409)

<div class="topic-metadata">

**Author:** [@fissell](https://discourse.itk.org/u/fissell)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 9:39pm UTC](https://discourse.itk.org/t/missing-examples-importpixelbufferintoanimage-code-py-and-wrap-python-question/3409 "2021-02-22T21:39:26Z")

</div>

Hi, I’m building InsightToolkit-5.1.0 on Ubuntu 20.04 with BUILD\_EXAMPLES ON and ITK\_WRAP\_PYTHON ON. Two questions. The make command succeeded. The make install command generated an errror: Make Error at Modules…

---

## ['nullptr' error in ITK compiling](https://discourse.itk.org/t/nullptr-error-in-itk-compiling/3888)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 1\
**Last updated:** [February 22, 2021, 7:52am UTC](https://discourse.itk.org/t/nullptr-error-in-itk-compiling/3888 "2021-02-22T07:52:09Z")

</div>

Hi all, When I compiled ITK-4.13.3, I met a lot of "nullptr’ errors if I enable Module\_ITKVtkGlue in cmake. The VTK version and gcc version I used is 8.2.0 and 4.8.5. It seems I missed something. Does anybody know the s…

---

## [Segmentation fault error when running Rigid+Affine Registration](https://discourse.itk.org/t/segmentation-fault-error-when-running-rigid-affine-registration/3879)

<div class="topic-metadata">

**Author:** [@cpicarr1](https://discourse.itk.org/u/cpicarr1)\
**Replies:** 7\
**Last updated:** [February 20, 2021, 10:03pm UTC](https://discourse.itk.org/t/segmentation-fault-error-when-running-rigid-affine-registration/3879 "2021-02-20T22:03:28Z")

</div>

Hello, I’m trying to run a rigid + affine registration of around 800 images (CT scans), but I keep getting a Segmentation Fault error, when run using Python3 on Ubuntu. The relevant part of the code is (I think): …

---

## [\[SimpleITK\] Registration of non-medical multi-modal images](https://discourse.itk.org/t/simpleitk-registration-of-non-medical-multi-modal-images/3851)

<div class="topic-metadata">

**Author:** [@PauloFavero](https://discourse.itk.org/u/PauloFavero)\
**Replies:** 10\
**Last updated:** [February 19, 2021, 8:09pm UTC](https://discourse.itk.org/t/simpleitk-registration-of-non-medical-multi-modal-images/3851 "2021-02-19T20:09:38Z")

</div>

Hi everyone, I am starting to learn how to use the toolkit for image registration. I have a pair of thermal-visual images that need to be registered. Each image has a different dimensions and with a 90% of the scene is…

---

## [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…

---

## [PatchBased Denoising Filter Failures on ARM64 MacOS](https://discourse.itk.org/t/patchbased-denoising-filter-failures-on-arm64-macos/3878)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 3\
**Last updated:** [February 18, 2021, 2:11pm UTC](https://discourse.itk.org/t/patchbased-denoising-filter-failures-on-arm64-macos/3878 "2021-02-18T14:11:59Z")

</div>

We have an ARM64 Build for MacOS Big Sur up on open.cdash.org and there has been a consistent 4 failures for a few weeks. Patch Based Denoising fails. The build bot is called “silicon.bluequartz.net” and is under the exp…

---

## [Resize nii image getting the modified affine information](https://discourse.itk.org/t/resize-nii-image-getting-the-modified-affine-information/3877)

<div class="topic-metadata">

**Author:** [@AmericaBG](https://discourse.itk.org/u/AmericaBG)\
**Replies:** 3\
**Last updated:** [February 18, 2021, 9:25am UTC](https://discourse.itk.org/t/resize-nii-image-getting-the-modified-affine-information/3877 "2021-02-18T09:25:12Z")

</div>

Hello every body! I’m trying to resize nii images but I don’t know how to modify its affine information to have the reference space information. The resize would be from (512,512,n\_slices) to (256,256,n\_slices) What I …

---

## [Subtract two meshes](https://discourse.itk.org/t/subtract-two-meshes/1945)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.itk.org/u/zandarina)\
**Replies:** 16\
**Last updated:** [February 17, 2021, 11:59pm UTC](https://discourse.itk.org/t/subtract-two-meshes/1945 "2021-02-17T23:59:26Z")

</div>

Hi everybody, I have a general question. I have an stl image and i read it with vtk and i fill it to be a solid. Now, i would like to make a substraction with another stl also solid. But the function of vtk is not optim…

---

## [How do I install the montaging remote module so that I can use it in my Python virtual environment?](https://discourse.itk.org/t/how-do-i-install-the-montaging-remote-module-so-that-i-can-use-it-in-my-python-virtual-environment/3873)

<div class="topic-metadata">

**Author:** [@joeykleingers](https://discourse.itk.org/u/joeykleingers)\
**Replies:** 3\
**Last updated:** [February 16, 2021, 8:28pm UTC](https://discourse.itk.org/t/how-do-i-install-the-montaging-remote-module-so-that-i-can-use-it-in-my-python-virtual-environment/3873 "2021-02-16T20:28:54Z")

</div>

Hello, I created a Python virtual environment and ran these commands: pip install itk pip install itk-montage However, when I try to create a TileMontage in my code import itk montage = itk.TileMontage.New() it fai…

---

## [Ouput deformation fields in DICOM format](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603)

<div class="topic-metadata">

**Author:** [@spencermanwell](https://discourse.itk.org/u/spencermanwell)\
**Replies:** 4\
**Last updated:** [February 16, 2021, 5:12pm UTC](https://discourse.itk.org/t/ouput-deformation-fields-in-dicom-format/2603 "2021-02-16T17:12:10Z")

</div>

Hello, Does anyone have experience writing the deformation vector fields to DICOM, i.e. following the C.20.3 Deformable Spatial Registration Module? Does functionality exist within ITK to do this? Thank you, Spencer

---

## [Python writing is not working correctly](https://discourse.itk.org/t/python-writing-is-not-working-correctly/3864)

<div class="topic-metadata">

**Author:** [@sarthakpati](https://discourse.itk.org/u/sarthakpati)\
**Replies:** 5\
**Last updated:** [February 16, 2021, 4:15pm UTC](https://discourse.itk.org/t/python-writing-is-not-working-correctly/3864 "2021-02-16T16:15:00Z")

</div>

Hi, The write image function in both SimpleITK and ITK python wrapping is broken. I am having a very weird issue when writing images whose information has changed: \>\>\> import SimpleITK as sitk \>\>\> base\_image = sitk.Re…

---

## [2D multiplanar (sagittal) from cross sequence](https://discourse.itk.org/t/2d-multiplanar-sagittal-from-cross-sequence/3861)

<div class="topic-metadata">

**Author:** [@AmericaBG](https://discourse.itk.org/u/AmericaBG)\
**Replies:** 12\
**Last updated:** [February 16, 2021, 3:20pm UTC](https://discourse.itk.org/t/2d-multiplanar-sagittal-from-cross-sequence/3861 "2021-02-16T15:20:33Z")

</div>

Hi! There goes my problem: I want to obtain 2D sagittal slices from a 3D volume composed of cross images. So far so good. My problem arrives when I want to resample/reform this sagittal images with a STIR sequence fro…

---

## [Only necessary to compile ITKCommon with KWSys & VXL](https://discourse.itk.org/t/only-necessary-to-compile-itkcommon-with-kwsys-vxl/3863)

<div class="topic-metadata">

**Author:** [@al-sabr](https://discourse.itk.org/u/al-sabr)\
**Replies:** 4\
**Last updated:** [February 15, 2021, 10:14pm UTC](https://discourse.itk.org/t/only-necessary-to-compile-itkcommon-with-kwsys-vxl/3863 "2021-02-15T22:14:38Z")

</div>

Greetings! What are the settings via CMake to generate only the basic compilation for ITK right now there is a compilation error with ITK\_BUILD\_DEFAULT\_MODULES option. See error compilation here : https://github.com/co…

[Previous page](https://discourse.itk.org/latest.md?page=53)

[Next page](https://discourse.itk.org/latest.md?page=55)
