# Latest

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

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

**Page:** 30

---

## [New example: Deform a Volume With a Thin Plate Spline](https://discourse.itk.org/t/new-example-deform-a-volume-with-a-thin-plate-spline/5619)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [January 9, 2023, 2:52pm UTC](https://discourse.itk.org/t/new-example-deform-a-volume-with-a-thin-plate-spline/5619 "2023-01-09T14:52:21Z")

</div>

Hi folks, Just a quick note that we have a new example on how to deform a 3D volume with a thin plate spline: https://examples.itk.org/src/core/transform/deformavolumewithathinplatespline/documentation

---

## [SimpleITK write Image to Dicom](https://discourse.itk.org/t/simpleitk-write-image-to-dicom/5594)

<div class="topic-metadata">

**Author:** [@jeffppp](https://discourse.itk.org/u/jeffppp)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 2:18am UTC](https://discourse.itk.org/t/simpleitk-write-image-to-dicom/5594 "2023-01-09T02:18:04Z")

</div>

I had read a series Dicom in Image class and resample the pixel to 1x1x1. I want to write the resampled Image to Dicom. But I only found the example in python. In C#, how should I split the 3D image to 2D image like imag…

---

## [What to do if the registration result is incorrect？](https://discourse.itk.org/t/what-to-do-if-the-registration-result-is-incorrect/5616)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 4:04am UTC](https://discourse.itk.org/t/what-to-do-if-the-registration-result-is-incorrect/5616 "2023-01-08T04:04:54Z")

</div>

I have a group of dicom images, and xyz has 15mm translation respectively. But I can’t get the correct result when I use itk to perform registration. The result is about 4, - 14, and 0 mm translation. I also get this res…

---

## [ITK ERROR: MattesMutualInformationImageToImageMetricv4(000001F33CCCA180): VirtualSampledPointSet must have 1 or more points.](https://discourse.itk.org/t/itk-error-mattesmutualinformationimagetoimagemetricv4-000001f33ccca180-virtualsampledpointset-must-have-1-or-more-points/5611)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 7\
**Last updated:** [January 7, 2023, 2:30am UTC](https://discourse.itk.org/t/itk-error-mattesmutualinformationimagetoimagemetricv4-000001f33ccca180-virtualsampledpointset-must-have-1-or-more-points/5611 "2023-01-07T02:30:59Z")

</div>

I want to complete a mask registration and add a mask to the dicom sequence to speed up the registration. I added a mask, but an error occurred in the title. I have checked my mask. There is data both internally and exte…

---

## [Threshold of itk::RescaleIntensityImageFilter](https://discourse.itk.org/t/threshold-of-itk-rescaleintensityimagefilter/5608)

<div class="topic-metadata">

**Author:** [@suzume](https://discourse.itk.org/u/suzume)\
**Replies:** 5\
**Last updated:** [January 6, 2023, 12:59am UTC](https://discourse.itk.org/t/threshold-of-itk-rescaleintensityimagefilter/5608 "2023-01-06T00:59:01Z")

</div>

I’m generating a DRR image using DigitallyReconstructedRadiograph1.cxx. I need to generate two kinds of DRR images, one only has the soft tissues and the other one only has the bone structures. I have tried to change th…

---

## [How to raise the quality of scientific Jupyter notebooks](https://discourse.itk.org/t/how-to-raise-the-quality-of-scientific-jupyter-notebooks/5615)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 11:13pm UTC](https://discourse.itk.org/t/how-to-raise-the-quality-of-scientific-jupyter-notebooks/5615 "2023-01-05T23:13:28Z")

</div>

Authors: Matt McCormick , Mary Elise Dedicke , Alex Remedios Reproducibility in Computational Experiments Jupyter has emerged as a fundamental component in artificial intelligence (AI) solution development and scientif…

---

## [Get the transformation or displacement vector field with SITK](https://discourse.itk.org/t/get-the-transformation-or-displacement-vector-field-with-sitk/5610)

<div class="topic-metadata">

**Author:** [@VHK](https://discourse.itk.org/u/VHK)\
**Replies:** 4\
**Last updated:** [January 5, 2023, 3:21pm UTC](https://discourse.itk.org/t/get-the-transformation-or-displacement-vector-field-with-sitk/5610 "2023-01-05T15:21:33Z")

</div>

Hello everyone, I did the registration and want to calculate TRE (target registration error) with SITK. I have the fixed image and the deformed moving image, and the landmarks. To compute TRE, I need to get the transfo…

---

## [Adding in-class \`{}\` default member initializers to data members of ITK classes](https://discourse.itk.org/t/adding-in-class-default-member-initializers-to-data-members-of-itk-classes/5613)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 11:34am UTC](https://discourse.itk.org/t/adding-in-class-default-member-initializers-to-data-members-of-itk-classes/5613 "2023-01-05T11:34:54Z")

</div>

Generally speaking, it appears hard to avoid undefined behavior when data members of classes aren’t consistently being initialized. We saw a few cases recently: Fix MSVC warning C26495: \`ZwQuerySystemInformation\`, \`m\_M…

---

## [Issue with writing](https://discourse.itk.org/t/issue-with-writing/5607)

<div class="topic-metadata">

**Author:** [@EneaP](https://discourse.itk.org/u/EneaP)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 2:39pm UTC](https://discourse.itk.org/t/issue-with-writing/5607 "2023-01-04T14:39:49Z")

</div>

I’ve tryied tu use SimpleITK library for filling hole in a 3D image but when I’m trying to write the image on disk, the code gives me this type of error. Can someone help me to solve this problem or know how what does it…

---

## [About Mask Registration](https://discourse.itk.org/t/about-mask-registration/5606)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 10:08am UTC](https://discourse.itk.org/t/about-mask-registration/5606 "2023-01-04T10:08:25Z")

</div>

I want to complete a mask registration and add a mask to the dicom sequence(3D) to speed up the registration. I found an example, but it is 2d and does not explain how to get the mask(I do not know how to create the mask…

---

## [Error adding mask during registration](https://discourse.itk.org/t/error-adding-mask-during-registration/5605)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 9:57am UTC](https://discourse.itk.org/t/error-adding-mask-during-registration/5605 "2023-01-04T09:57:12Z")

</div>

ImageMaskType::Pointer image = ImageMaskType::New(); ImageMaskType::SizeType outsize = {650,650,650 }; ImageMaskType::IndexType index = { { 0, 0, 0 } }; ImageMaskType::RegionType region; ImageMaskType::SpacingT…

---

## [Save Segmentation as DICOM file with Simple ITK and Python](https://discourse.itk.org/t/save-segmentation-as-dicom-file-with-simple-itk-and-python/5593)

<div class="topic-metadata">

**Author:** [@riba](https://discourse.itk.org/u/riba)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 2:02pm UTC](https://discourse.itk.org/t/save-segmentation-as-dicom-file-with-simple-itk-and-python/5593 "2022-12-28T14:02:47Z")

</div>

I want to write the image an numpy array (with zeros and ones only) which is the result of the segmentation of a CT image. How can I save it using sitk? I don’t know how to set some of the metadata as: high bit, bits al…

---

## [Adjust window/level of the image](https://discourse.itk.org/t/adjust-window-level-of-the-image/5590)

<div class="topic-metadata">

**Author:** [@suzume](https://discourse.itk.org/u/suzume)\
**Replies:** 6\
**Last updated:** [December 24, 2022, 1:56am UTC](https://discourse.itk.org/t/adjust-window-level-of-the-image/5590 "2022-12-24T01:56:57Z")

</div>

Hello, I want to change the window/level of the portal image to make it looks similar to the DRR image. Is there useful tools in ITK to achieve it? Or what can I do to make it? The portal image and the DRR image are at…

---

## [Issues with TransformContinuousIndexToPhysicalPoint for anisotropic images](https://discourse.itk.org/t/issues-with-transformcontinuousindextophysicalpoint-for-anisotropic-images/5588)

<div class="topic-metadata">

**Author:** [@nifti](https://discourse.itk.org/u/nifti)\
**Replies:** 3\
**Last updated:** [December 22, 2022, 5:50pm UTC](https://discourse.itk.org/t/issues-with-transformcontinuousindextophysicalpoint-for-anisotropic-images/5588 "2022-12-22T17:50:44Z")

</div>

Hi all, I have a very basic question regarding the TransformContinuousIndexToPhysicalPoint() function. I have two images: isotropically sampled image (1x1x1) anisotropically acquired image (0.2x0.2x5) I would like t…

---

## [How to capture multiple transformations while using timeit](https://discourse.itk.org/t/how-to-capture-multiple-transformations-while-using-timeit/5589)

<div class="topic-metadata">

**Author:** [@debapriya](https://discourse.itk.org/u/debapriya)\
**Replies:** 1\
**Last updated:** [December 22, 2022, 2:33pm UTC](https://discourse.itk.org/t/how-to-capture-multiple-transformations-while-using-timeit/5589 "2022-12-22T14:33:50Z")

</div>

Hello, I am running intensity based image registration using SimpleITK. I am using timeit command, with 7 repetitions, to find out the mean time required by the registration process. I also want to find out the mean fi…

---

## [Merge different labels in a single image](https://discourse.itk.org/t/merge-different-labels-in-a-single-image/5584)

<div class="topic-metadata">

**Author:** [@EneaP](https://discourse.itk.org/u/EneaP)\
**Replies:** 1\
**Last updated:** [December 21, 2022, 5:13pm UTC](https://discourse.itk.org/t/merge-different-labels-in-a-single-image/5584 "2022-12-21T17:13:34Z")

</div>

Hi, I have 7 different labels in each 7 different binary images. All of these images are 3D images provided by CT scan, they have a number of slices and 512x512 number of pixels for each slices. I want to merge these sev…

---

## [Merge different labels in a unique image](https://discourse.itk.org/t/merge-different-labels-in-a-unique-image/5580)

<div class="topic-metadata">

**Author:** [@EneaP](https://discourse.itk.org/u/EneaP)\
**Replies:** 1\
**Last updated:** [December 21, 2022, 1:20pm UTC](https://discourse.itk.org/t/merge-different-labels-in-a-unique-image/5580 "2022-12-21T13:20:46Z")

</div>

Hi, I have 7 different labels in each 7 different binary images. All of these images are 3D images provided by CT scan, they have a number of slices and 512x512 number of pixels for each slices. I want to merge these sev…

---

## [Build Python Module Wheel for linux/arm64](https://discourse.itk.org/t/build-python-module-wheel-for-linux-arm64/5443)

<div class="topic-metadata">

**Author:** [@mdevl](https://discourse.itk.org/u/mdevl)\
**Replies:** 7\
**Last updated:** [December 20, 2022, 7:01pm UTC](https://discourse.itk.org/t/build-python-module-wheel-for-linux-arm64/5443 "2022-12-20T19:01:47Z")

</div>

While itk itself publishes wheels for pretty much all relevant architectures, I am facing the issue that I need to build a linux/arm64 python wheel for a specific module for which a linux/arm64 wheel is not available. T…

---

## [ITK 5.3.0 has been released!](https://discourse.itk.org/t/itk-5-3-0-has-been-released/5578)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [December 20, 2022, 6:29pm UTC](https://discourse.itk.org/t/itk-5-3-0-has-been-released/5578 "2022-12-20T18:29:28Z")

</div>

We are exceedingly pleased to announce the Insight Toolkit (ITK) 5.3.0 is available for download! :tada: :santa: :gift: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segment…

---

## [Parameters in BSplineTransform](https://discourse.itk.org/t/parameters-in-bsplinetransform/3395)

<div class="topic-metadata">

**Author:** [@prms](https://discourse.itk.org/u/prms)\
**Replies:** 10\
**Last updated:** [December 20, 2022, 2:19pm UTC](https://discourse.itk.org/t/parameters-in-bsplinetransform/3395 "2022-12-20T14:19:34Z")

</div>

I’m trying to register images using BSplineTransform. I’m not clear about the total number of parameters in case of BSplineTransform. In the case of AffineTransform, for 3D images, there are 12 parameters and I can count…

---

## [In the registration process, an iteration is ended without starting](https://discourse.itk.org/t/in-the-registration-process-an-iteration-is-ended-without-starting/5577)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [December 19, 2022, 7:33am UTC](https://discourse.itk.org/t/in-the-registration-process-an-iteration-is-ended-without-starting/5577 "2022-12-19T07:33:46Z")

</div>

What may be the reason?The measurement is MattesMutualInformationImageToImageMetricv4

---

## [How to add initialization to the first level registration during cascade registration](https://discourse.itk.org/t/how-to-add-initialization-to-the-first-level-registration-during-cascade-registration/5576)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [December 19, 2022, 3:27am UTC](https://discourse.itk.org/t/how-to-add-initialization-to-the-first-level-registration-during-cascade-registration/5576 "2022-12-19T03:27:19Z")

</div>

I added initialization, but in the second level, it receives the results of the first level, but this result does not include the initialization of the first level. How do I do it

---

## [How to transfer an image buffer to matlab image matrix](https://discourse.itk.org/t/how-to-transfer-an-image-buffer-to-matlab-image-matrix/5568)

<div class="topic-metadata">

**Author:** [@allen](https://discourse.itk.org/u/allen)\
**Replies:** 4\
**Last updated:** [December 18, 2022, 4:23pm UTC](https://discourse.itk.org/t/how-to-transfer-an-image-buffer-to-matlab-image-matrix/5568 "2022-12-18T16:23:15Z")

</div>

hello, i want to retrieve image data from itk image, and load it in matlab. transfer the data pixel by pixel is too slow, and there are no direct function like mxArray::new\_from\_buffer can do it, so i have an idea that …

---

## [ITK v5.3.0 time line](https://discourse.itk.org/t/itk-v5-3-0-time-line/4932)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 9\
**Last updated:** [December 18, 2022, 4:18pm UTC](https://discourse.itk.org/t/itk-v5-3-0-time-line/4932 "2022-12-18T16:18:20Z")

</div>

Is there an expected road map or timeline for the v5.3.0 release?

---

## [Export ITK points into DICOM SR planar annotations?](https://discourse.itk.org/t/export-itk-points-into-dicom-sr-planar-annotations/5555)

<div class="topic-metadata">

**Author:** [@hapap](https://discourse.itk.org/u/hapap)\
**Replies:** 7\
**Last updated:** [December 13, 2022, 10:37pm UTC](https://discourse.itk.org/t/export-itk-points-into-dicom-sr-planar-annotations/5555 "2022-12-13T22:37:36Z")

</div>

Hi! We have various points-of-interest in our software and would like to export them into DICOM format files. To my understanding, the correct format for this would be DICOM Structured Reports (SR) and its planar annota…

---

## [Image Compression Performance](https://discourse.itk.org/t/image-compression-performance/5570)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 4\
**Last updated:** [December 13, 2022, 2:28pm UTC](https://discourse.itk.org/t/image-compression-performance/5570 "2022-12-13T14:28:21Z")

</div>

I have encountered a situations where using gzip level 9 to compress an image is taking ~40x longer (depending on the image content) than writing the image without compression @dzenanz I recall you did some performance …

---

## [From pydicom data format to simpleITK](https://discourse.itk.org/t/from-pydicom-data-format-to-simpleitk/5543)

<div class="topic-metadata">

**Author:** [@Naja](https://discourse.itk.org/u/Naja)\
**Replies:** 1\
**Last updated:** [December 2, 2022, 3:05pm UTC](https://discourse.itk.org/t/from-pydicom-data-format-to-simpleitk/5543 "2022-12-02T15:05:00Z")

</div>

Is there a way for me to load a list of pydicom images straight into simpleITK in python without having to save them locally first? I’m working on a auto-segmentation project where I receive two pydicom lists ( one PET …

---

## [itk::OnePlusOneEvolutionaryOptimizerv4\<double\> How to adjust parameters for this optimizer？](https://discourse.itk.org/t/itk-oneplusoneevolutionaryoptimizerv4-double-how-to-adjust-parameters-for-this-optimizer/5567)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [December 13, 2022, 2:53am UTC](https://discourse.itk.org/t/itk-oneplusoneevolutionaryoptimizerv4-double-how-to-adjust-parameters-for-this-optimizer/5567 "2022-12-13T02:53:32Z")

</div>

Can’t this optimizer optimize the 3d-3d itk:: VersorRigid3DTransform? When I use this optimizer, I can’t always find the results. I use cascade registration. The first stage is a translation, which can work normally. But…

---

## [Convex Hull as Hit-or-Miss](https://discourse.itk.org/t/convex-hull-as-hit-or-miss/5563)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 11:16pm UTC](https://discourse.itk.org/t/convex-hull-as-hit-or-miss/5563 "2022-12-12T23:16:20Z")

</div>

I am trying to implement convex hull algorithm calling hit-or-miss several times with 90 degrees rotated structural elements. It is not working properly. using ShapedNeighborhoodIteratorType\_Heart\_Hull =itk::ConstSha…

---

## [Need help in resolving the error in "readImageDICOMFileSeries"](https://discourse.itk.org/t/need-help-in-resolving-the-error-in-readimagedicomfileseries/5561)

<div class="topic-metadata">

**Author:** [@shantanudeo](https://discourse.itk.org/u/shantanudeo)\
**Replies:** 0\
**Last updated:** [December 9, 2022, 11:05am UTC](https://discourse.itk.org/t/need-help-in-resolving-the-error-in-readimagedicomfileseries/5561 "2022-12-09T11:05:34Z")

</div>

Firstly, I am new to ITK-wasm and even JS. I am trying out an example to read DICOM image using ITK.js. I have followed “itk-read-dicom” on Glitch (https://glitch.com/edit/#!/itk-read-dicom?path=src%2Findex.js%3A27%3A3…

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

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