# Latest

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

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

**Page:** 32

---

## [sitk Commands for N4](https://discourse.itk.org/t/sitk-commands-for-n4/5465)

<div class="topic-metadata">

**Author:** [@spinicist](https://discourse.itk.org/u/spinicist)\
**Replies:** 7\
**Last updated:** [November 17, 2022, 4:37pm UTC](https://discourse.itk.org/t/sitk-commands-for-n4/5465 "2022-11-17T16:37:19Z")

</div>

Hello, I’d like to add loggin for N4BiasFieldCorrection in sitk, similar to that printed out by the ANTs version. However, it looks like the GetCurrentConvergenceMeasurement and GetCurrentLevel methods are not currentl…

---

## ['itk' has no attribute 'structure\_preserving\_color\_normalization\_filter'](https://discourse.itk.org/t/itk-has-no-attribute-structure-preserving-color-normalization-filter/5498)

<div class="topic-metadata">

**Author:** [@Jon](https://discourse.itk.org/u/Jon)\
**Replies:** 2\
**Last updated:** [November 17, 2022, 11:58am UTC](https://discourse.itk.org/t/itk-has-no-attribute-structure-preserving-color-normalization-filter/5498 "2022-11-17T11:58:22Z")

</div>

The Python 3.8 script below fails with: AttributeError: module ‘itk’ has no attribute ‘structure\_preserving\_color\_normalization\_filter’ # https://www.kitware.com/new-insight-toolkit-itk-module-for-structure-preserving-…

---

## [Remove Noisy Objects](https://discourse.itk.org/t/remove-noisy-objects/5492)

<div class="topic-metadata">

**Author:** [@cristinamontserrat](https://discourse.itk.org/u/cristinamontserrat)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 3:12pm UTC](https://discourse.itk.org/t/remove-noisy-objects/5492 "2022-11-16T15:12:28Z")

</div>

Hi! I am trying to remove labels from Label Map, which belong to noisy objects. For doing that, I have created the following code: ITKImgLabelType2D::Pointer RemoveNoisyObjects( const ITKImgLabelType2D::Pointer& imgIn,…

---

## [itk 5.3rc4.post3: Failure to load libtbb library (observed on macOS 10.13)](https://discourse.itk.org/t/itk-5-3rc4-post3-failure-to-load-libtbb-library-observed-on-macos-10-13/5405)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.itk.org/u/jcfr)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 1:55pm UTC](https://discourse.itk.org/t/itk-5-3rc4-post3-failure-to-load-libtbb-library-observed-on-macos-10-13/5405 "2022-11-14T13:55:47Z")

</div>

To follow up on ITK 5.3 Release Candidate 4 available for testing, I may have identified few issues found with itk 5.3rc4.post3 specific to macOS that are related to the bundling of libtbb.12.3.dylib. Context While the …

---

## [Linking itk with an external project](https://discourse.itk.org/t/linking-itk-with-an-external-project/5481)

<div class="topic-metadata">

**Author:** [@Ajay\_Emmanuel](https://discourse.itk.org/u/Ajay_Emmanuel)\
**Replies:** 5\
**Last updated:** [November 11, 2022, 7:59pm UTC](https://discourse.itk.org/t/linking-itk-with-an-external-project/5481 "2022-11-11T19:59:16Z")

</div>

Hi, I built the latest version of itk using CMake. After configuring my CMakeLists.txt file in as per the instructions online for an external project, I am still getting this error - cannot open source file “itkImage.h”…

---

## [How can I keep the association between input image coordinate (z-axis) and segmentation mask?](https://discourse.itk.org/t/how-can-i-keep-the-association-between-input-image-coordinate-z-axis-and-segmentation-mask/5467)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 7\
**Last updated:** [November 11, 2022, 1:46pm UTC](https://discourse.itk.org/t/how-can-i-keep-the-association-between-input-image-coordinate-z-axis-and-segmentation-mask/5467 "2022-11-11T13:46:35Z")

</div>

Hello, I am working with 3D CT images which are consists of a series of 2D slices. I resized them into (128 x 128 x 128) My segmentation masks are provided as xml files and have segmentations only for like 3 or 4 slice…

---

## [RuntimeError: Exception thrown in SimpleITK ImageSeriesReader\_Execute](https://discourse.itk.org/t/runtimeerror-exception-thrown-in-simpleitk-imageseriesreader-execute/5484)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 1:50am UTC](https://discourse.itk.org/t/runtimeerror-exception-thrown-in-simpleitk-imageseriesreader-execute/5484 "2022-11-11T01:50:42Z")

</div>

I am trying to read a 3D dicom image with sitk as follows: def read\_first\_series\_in\_dir(dir): series\_reader = sitk.ImageSeriesReader() series\_IDs = sitk.ImageSeriesReader.GetGDCMSeriesIDs(dir) series\_file\_na…

---

## [How to change the order of rotation in SetComputeZYX()?](https://discourse.itk.org/t/how-to-change-the-order-of-rotation-in-setcomputezyx/5474)

<div class="topic-metadata">

**Author:** [@suzume](https://discourse.itk.org/u/suzume)\
**Replies:** 5\
**Last updated:** [November 11, 2022, 1:08am UTC](https://discourse.itk.org/t/how-to-change-the-order-of-rotation-in-setcomputezyx/5474 "2022-11-11T01:08:03Z")

</div>

I want to generate DRR from a CT image. I want the CT image to rotate in the order of the X, Y, Z axis. However, SetComputeZYX( ) only set the order ZYX/ZXY. How can I can set the order XYZ?

---

## [What type of transformation aligns the centres of the two volumes?](https://discourse.itk.org/t/what-type-of-transformation-aligns-the-centres-of-the-two-volumes/5470)

<div class="topic-metadata">

**Author:** [@mahesh\_bhosale](https://discourse.itk.org/u/mahesh_bhosale)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 11:15pm UTC](https://discourse.itk.org/t/what-type-of-transformation-aligns-the-centres-of-the-two-volumes/5470 "2022-11-08T23:15:48Z")

</div>

I am working on the medical image registration task which requires two volumes to be affinely aligned globally, what transformation should I apply to make them aligned?

---

## [ITK 5.3 Release Candidate 2 available for testing](https://discourse.itk.org/t/itk-5-3-release-candidate-2-available-for-testing/4573)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 6\
**Last updated:** [November 7, 2022, 5:02pm UTC](https://discourse.itk.org/t/itk-5-3-release-candidate-2-available-for-testing/4573 "2022-11-07T17:02:45Z")

</div>

ITK 5.3 Release Candidate 2 Release Notes We are happy to announce the Insight Toolkit (ITK) 5.3 Release Candidate 2 is available for testing! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scient…

---

## [How can I apply a 2D mask in a 3D image? - SliceBySliceImageFilter](https://discourse.itk.org/t/how-can-i-apply-a-2d-mask-in-a-3d-image-slicebysliceimagefilter/5418)

<div class="topic-metadata">

**Author:** [@cristinamontserrat](https://discourse.itk.org/u/cristinamontserrat)\
**Replies:** 11\
**Last updated:** [November 7, 2022, 8:56am UTC](https://discourse.itk.org/t/how-can-i-apply-a-2d-mask-in-a-3d-image-slicebysliceimagefilter/5418 "2022-11-07T08:56:24Z")

</div>

Hi! I am trying to mask a 3D image with a 2D mask with the itkSliceBySliceImageFilter. Here is my code: // We create the filter mask using MaskFilterType = itk::MaskImageFilter\<ITKImgLabelType2D, ITKImgLabelType2D, I…

---

## [measure lesion size](https://discourse.itk.org/t/measure-lesion-size/5469)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura1](https://discourse.itk.org/u/Jakub_Mitura1)\
**Replies:** 2\
**Last updated:** [November 6, 2022, 6:11am UTC](https://discourse.itk.org/t/measure-lesion-size/5469 "2022-11-06T06:11:04Z")

</div>

Hello I have a lesion in the 3d boolean array - 1 is presence 0 is absence - I would like to get the size of it in 3 axes - main longest axis and the other 2. Problem is that the long axis of the lesion generally do not…

---

## [After switching to python 3.10 I can no longer pip install the same versions of itk as when using python 3.9.](https://discourse.itk.org/t/after-switching-to-python-3-10-i-can-no-longer-pip-install-the-same-versions-of-itk-as-when-using-python-3-9/5466)

<div class="topic-metadata">

**Author:** [@br\_cpvc](https://discourse.itk.org/u/br_cpvc)\
**Replies:** 5\
**Last updated:** [November 4, 2022, 12:48pm UTC](https://discourse.itk.org/t/after-switching-to-python-3-10-i-can-no-longer-pip-install-the-same-versions-of-itk-as-when-using-python-3-9/5466 "2022-11-04T12:48:07Z")

</div>

I’m not entirely sure if this is the expected behavior or not. I have tried to find the root cause of this, but I lack the knowledge of how the internals work and I’m not able to find the cause. As far as I can see https…

---

## [How can I read/write series of .tiff in webpage using itk.js?](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464)

<div class="topic-metadata">

**Author:** [@Yuvi-416](https://discourse.itk.org/u/Yuvi-416)\
**Replies:** 2\
**Last updated:** [November 4, 2022, 12:00pm UTC](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464 "2022-11-04T12:00:55Z")

</div>

Hi all, I am trying to read a series of .tiff or .tif files into the webpage using ITK.js. I know it supports it as it’s here Supported Image File Formats | itk-wasm and it says I have to use the readImageFileSeries fun…

---

## [How to output label map in C++?](https://discourse.itk.org/t/how-to-output-label-map-in-c/5459)

<div class="topic-metadata">

**Author:** [@SummerZ2020](https://discourse.itk.org/u/SummerZ2020)\
**Replies:** 5\
**Last updated:** [November 4, 2022, 12:55am UTC](https://discourse.itk.org/t/how-to-output-label-map-in-c/5459 "2022-11-04T00:55:47Z")

</div>

hello, I am using label map to remove some undesirable regions in binary image. first, call BinaryImageToShapeLabelMapFilter to get label map, then output the label map and all the objects’ centroids. I have checked t…

---

## [ThreadFunctionType, ITK\_THREAD\_RETURN\_TYPE, and 32-bit Windows](https://discourse.itk.org/t/threadfunctiontype-itk-thread-return-type-and-32-bit-windows/5457)

<div class="topic-metadata">

**Author:** [@gcsharp](https://discourse.itk.org/u/gcsharp)\
**Replies:** 3\
**Last updated:** [November 2, 2022, 7:56pm UTC](https://discourse.itk.org/t/threadfunctiontype-itk-thread-return-type-and-32-bit-windows/5457 "2022-11-02T19:56:39Z")

</div>

Hi, I encountered a problem on 32-bit windows for ITK 5.X. In ITK 4, thread functions were defined as follows: typedef unsigned(\_\_stdcall \* ThreadFunctionType)(void \*); #define ITK\_THREAD\_RETURN\_TYPE unsigned \_\_stdcall…

---

## [Label Shape Opening Slice by Slice not working very welll](https://discourse.itk.org/t/label-shape-opening-slice-by-slice-not-working-very-welll/5454)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 0\
**Last updated:** [October 27, 2022, 8:12pm UTC](https://discourse.itk.org/t/label-shape-opening-slice-by-slice-not-working-very-welll/5454 "2022-10-27T20:12:56Z")

</div>

Can’t apply shape open slice by slice. I get a null image, even though most of the connected components have less than 1000 pixels… for(int slice\_to\_process = 0; slice\_to\_process \< final\_slice\_ribs ; slice\_to\_process++)…

---

## [Rotated an Image but can't get an object count](https://discourse.itk.org/t/rotated-an-image-but-cant-get-an-object-count/5453)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 6:57pm UTC](https://discourse.itk.org/t/rotated-an-image-but-cant-get-an-object-count/5453 "2022-10-27T18:57:25Z")

</div>

I rotated an image with euler3d transform and resampler and it works fine. But then I ask to get an object count and get 0 objects which is not true based on the saved image. using ResampleFilterType\_2 = itk::ResampleIm…

---

## [Processing two images with different starts](https://discourse.itk.org/t/processing-two-images-with-different-starts/5451)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 1:15pm UTC](https://discourse.itk.org/t/processing-two-images-with-different-starts/5451 "2022-10-27T13:15:04Z")

</div>

I have 2 images with the same size but with different starts. I want use one as a mask. Should I use import image filter first to set the same start for both of them?

---

## [Adding additional geometries to Viewer changes colours of outputs](https://discourse.itk.org/t/adding-additional-geometries-to-viewer-changes-colours-of-outputs/5449)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.itk.org/u/Kevin_Sweeney)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 1:30pm UTC](https://discourse.itk.org/t/adding-additional-geometries-to-viewer-changes-colours-of-outputs/5449 "2022-10-26T13:30:18Z")

</div>

I am visualising multiple outputs in the same view depending on choices by the user (i.e. highlighting points on top of glyphs etc). However, I am finding that as I add additional glyphs the colours of other sources cha…

---

## [runPipelineNode](https://discourse.itk.org/t/runpipelinenode/5271)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 6:34am UTC](https://discourse.itk.org/t/runpipelinenode/5271 "2022-10-26T06:34:19Z")

</div>

Hi everyone, I have hard time to extend ITK-WASM HelloWasm example to MedianFilterTest.cxx example. I managed to build it using itk-wasm build command in node.js terminal command line in VSCODE. MedianFilterTest.js/umd/…

---

## [ITK read multi-frame DCM files](https://discourse.itk.org/t/itk-read-multi-frame-dcm-files/5444)

<div class="topic-metadata">

**Author:** [@itkk](https://discourse.itk.org/u/itkk)\
**Replies:** 3\
**Last updated:** [October 25, 2022, 4:16pm UTC](https://discourse.itk.org/t/itk-read-multi-frame-dcm-files/5444 "2022-10-25T16:16:17Z")

</div>

Can ITK read multi-frame DCM files? For example, DSA, how to do it?

---

## [Each voxel (3-dimmensional pixel) in the image has a length, width, and height of 1mm. What will be the volume in cm^3?](https://discourse.itk.org/t/each-voxel-3-dimmensional-pixel-in-the-image-has-a-length-width-and-height-of-1mm-what-will-be-the-volume-in-cm-3/5438)

<div class="topic-metadata">

**Author:** [@dharmannasdmit](https://discourse.itk.org/u/dharmannasdmit)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 11:51pm UTC](https://discourse.itk.org/t/each-voxel-3-dimmensional-pixel-in-the-image-has-a-length-width-and-height-of-1mm-what-will-be-the-volume-in-cm-3/5438 "2022-10-23T23:51:57Z")

</div>

dimension of image is 256X256X192 T2\_76.IMA (130.1 KB) Each voxel (3-dimmensional pixel) in this image has a length, width, and height of 1mm. Calculate brain volume from brainMask. What is the volume of this brain in …

---

## [DICOM Enhanced CT with GDCM\_IO](https://discourse.itk.org/t/dicom-enhanced-ct-with-gdcm-io/5402)

<div class="topic-metadata">

**Author:** [@rfrank](https://discourse.itk.org/u/rfrank)\
**Replies:** 7\
**Last updated:** [October 21, 2022, 3:48pm UTC](https://discourse.itk.org/t/dicom-enhanced-ct-with-gdcm-io/5402 "2022-10-21T15:48:40Z")

</div>

Hi I’m working on an existing code base that uses ITK/Gdcm ITK 4.12 I have a Toshiba ct multi frame. ITK is returning direction cosines 1 0 0 0 1 0 0 0 -1 And I need to swap the z axis and reset the direction cosine…

---

## [how to implement registration between DSA(2d)-CTA(3d) image](https://discourse.itk.org/t/how-to-implement-registration-between-dsa-2d-cta-3d-image/5415)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 11\
**Last updated:** [October 21, 2022, 1:56am UTC](https://discourse.itk.org/t/how-to-implement-registration-between-dsa-2d-cta-3d-image/5415 "2022-10-21T01:56:12Z")

</div>

Is there any method to register DSA(2d)-CTA(3d) images? For every point in CTA, I want to know the corresponding point in DSA. I find an example for 2d-3d registration. In this ITKTwoProjectionRegistration, I don’t know…

---

## [import image axis reorder and flipping](https://discourse.itk.org/t/import-image-axis-reorder-and-flipping/5433)

<div class="topic-metadata">

**Author:** [@leandro328](https://discourse.itk.org/u/leandro328)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 8:06pm UTC](https://discourse.itk.org/t/import-image-axis-reorder-and-flipping/5433 "2022-10-20T20:06:21Z")

</div>

i need to work with itk images and numpy arrays, but the operations itk.GetImageFromArray and itk.GetArrayFromImage e.g.: img = itk.GetImageFromArray(input\_img) res\_img = itk.GetArrayFromImage(img) are flipping and a…

---

## [Ability to show text actor in itkwidgets.view()](https://discourse.itk.org/t/ability-to-show-text-actor-in-itkwidgets-view/5431)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.itk.org/u/Kevin_Sweeney)\
**Replies:** 0\
**Last updated:** [October 20, 2022, 3:18pm UTC](https://discourse.itk.org/t/ability-to-show-text-actor-in-itkwidgets-view/5431 "2022-10-20T15:18:49Z")

</div>

I am just looking to confirm that it is not possible to add BillboardTextActor3D to viewer geometries. I have tried a few things, but as the warning stipulates: The 'geometries' trait of a Viewer instance expected A dat…

---

## [Retrieve info on current itkwidget.view window bounds - following zoom](https://discourse.itk.org/t/retrieve-info-on-current-itkwidget-view-window-bounds-following-zoom/5420)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.itk.org/u/Kevin_Sweeney)\
**Replies:** 4\
**Last updated:** [October 19, 2022, 6:19pm UTC](https://discourse.itk.org/t/retrieve-info-on-current-itkwidget-view-window-bounds-following-zoom/5420 "2022-10-19T18:19:31Z")

</div>

As point selection in itkwidgets.view is not currently possible (Geometry / Point selection · Issue #575 · Kitware/itk-vtk-viewer · GitHub) is there a way to get the visual bounds of the viewer? i.e. if we create a view …

---

## [How accelerate many times affinetransform, fft and ifft process?](https://discourse.itk.org/t/how-accelerate-many-times-affinetransform-fft-and-ifft-process/5425)

<div class="topic-metadata">

**Author:** [@ydl](https://discourse.itk.org/u/ydl)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 2:22pm UTC](https://discourse.itk.org/t/how-accelerate-many-times-affinetransform-fft-and-ifft-process/5425 "2022-10-19T14:22:08Z")

</div>

I have many mri(ixi-t2 dataset with.nii.gz format), for each image, what I now do is, create n copies of this image(n is select from(30, 150), for each copy, do random affinetransform, then fft to k-space, for this n k-s…

---

## [Euler3DTransform class and Transforms class](https://discourse.itk.org/t/euler3dtransform-class-and-transforms-class/5332)

<div class="topic-metadata">

**Author:** [@natwille1](https://discourse.itk.org/u/natwille1)\
**Replies:** 6\
**Last updated:** [October 19, 2022, 1:21pm UTC](https://discourse.itk.org/t/euler3dtransform-class-and-transforms-class/5332 "2022-10-19T13:21:00Z")

</div>

I executed a ImageRegistrationMethod function call, and set the initial transform according to: initial\_transform = sitk.CenteredTransformInitializer( fixed\_image, moving\_image, sitk.Euler3DTransform(), …

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

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