# Latest

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

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

**Page:** 25

---

## [How to modify an array of a SITK object](https://discourse.itk.org/t/how-to-modify-an-array-of-a-sitk-object/5872)

<div class="topic-metadata">

**Author:** [@javidx](https://discourse.itk.org/u/javidx)\
**Replies:** 2\
**Last updated:** [April 17, 2023, 8:38pm UTC](https://discourse.itk.org/t/how-to-modify-an-array-of-a-sitk-object/5872 "2023-04-17T20:38:02Z")

</div>

Hi, I’m a beginner in using SITK. I imagine this should be an easy thing to do but I couldn’t find anything that worked. Basically, I have a DICOM image that I’m loading with SITK. I also have a binary mask for this DICO…

---

## [Image Registration with no translation](https://discourse.itk.org/t/image-registration-with-no-translation/5874)

<div class="topic-metadata">

**Author:** [@csoconnor](https://discourse.itk.org/u/csoconnor)\
**Replies:** 3\
**Last updated:** [April 17, 2023, 3:48pm UTC](https://discourse.itk.org/t/image-registration-with-no-translation/5874 "2023-04-17T15:48:46Z")

</div>

Is it possible to register two images off of a point (not the center of the image) without translation? As in I have two images that are fixed at one point but I need to align the moving image using 3d rotation only. I …

---

## [FFTNormalizedCrossCorrelation: Get location in image](https://discourse.itk.org/t/fftnormalizedcrosscorrelation-get-location-in-image/5789)

<div class="topic-metadata">

**Author:** [@elapins](https://discourse.itk.org/u/elapins)\
**Replies:** 9\
**Last updated:** [April 14, 2023, 1:29pm UTC](https://discourse.itk.org/t/fftnormalizedcrosscorrelation-get-location-in-image/5789 "2023-04-14T13:29:40Z")

</div>

Hello, I have written the following code, and obtained the correct maximum value from the FFT Normalized Cross Correlation tools in SimpleITK. I am now wondering, how I can get this maximum value location(x,y) within t…

---

## [Problem in image and its mask superposition](https://discourse.itk.org/t/problem-in-image-and-its-mask-superposition/5867)

<div class="topic-metadata">

**Author:** [@Sunita\_Patel](https://discourse.itk.org/u/Sunita_Patel)\
**Replies:** 3\
**Last updated:** [April 14, 2023, 8:52am UTC](https://discourse.itk.org/t/problem-in-image-and-its-mask-superposition/5867 "2023-04-14T08:52:16Z")

</div>

Dear SITK team, We are trying to generate image and its mask from RTStruct file. The dimension of the image is: 256 256 216 The dimension of the mask is: 256 256 216 While visualizing we observed that mask is not sup…

---

## [About RTK use](https://discourse.itk.org/t/about-rtk-use/5866)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 6\
**Last updated:** [April 14, 2023, 12:59am UTC](https://discourse.itk.org/t/about-rtk-use/5866 "2023-04-14T00:59:04Z")

</div>

I would like to use the RTK library. I have downloaded some CBCT raw data from Varian. Which programs should I refer to to write my reconstruction “hello world”?

---

## [How to build ImageRegistration8 example with ITK-WASM?](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800)

<div class="topic-metadata">

**Author:** [@David\_SAMSONOFF](https://discourse.itk.org/u/David_SAMSONOFF)\
**Replies:** 33\
**Last updated:** [April 13, 2023, 7:14pm UTC](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800 "2023-04-13T19:14:28Z")

</div>

Hello, I’m trying to compile the example ImageRegistration8.cxx for WebAssembly without success. I have followed the tutorial in https://wasm.itk.org/tutorial/inputs\_outputs and it works correctly. However, when I follo…

---

## [Why is the final mutual information obtained in the registration process different from the mutual information of the image after I calculate the registration](https://discourse.itk.org/t/why-is-the-final-mutual-information-obtained-in-the-registration-process-different-from-the-mutual-information-of-the-image-after-i-calculate-the-registration/5860)

<div class="topic-metadata">

**Author:** [@ljjiayou](https://discourse.itk.org/u/ljjiayou)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 3:23am UTC](https://discourse.itk.org/t/why-is-the-final-mutual-information-obtained-in-the-registration-process-different-from-the-mutual-information-of-the-image-after-i-calculate-the-registration/5860 "2023-04-12T03:23:10Z")

</div>

this is my code initial\_transform = sitk.CenteredTransformInitializer(fixed\_image, moving\_image, sitk.Eul…

---

## [\[Help wanted\] Want to registrate two images and merge them (like tutorial notebook7)](https://discourse.itk.org/t/help-wanted-want-to-registrate-two-images-and-merge-them-like-tutorial-notebook7/5863)

<div class="topic-metadata">

**Author:** [@caolonghao](https://discourse.itk.org/u/caolonghao)\
**Replies:** 2\
**Last updated:** [April 11, 2023, 12:27pm UTC](https://discourse.itk.org/t/help-wanted-want-to-registrate-two-images-and-merge-them-like-tutorial-notebook7/5863 "2023-04-11T12:27:24Z")

</div>

Hello, I’m new to SimpleITK. My goal is to registrate two 2D image and merge them into a bigger one. I noticed that it is similar to the function of Tutorial notebook7, the only difference is that the fixed image is not …

---

## [Parametric Curve Fitting](https://discourse.itk.org/t/parametric-curve-fitting/5585)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 3\
**Last updated:** [April 11, 2023, 12:12pm UTC](https://discourse.itk.org/t/parametric-curve-fitting/5585 "2023-04-11T12:12:59Z")

</div>

Hello, I must fit a parametric surface, or a curve, in the points of my image data. I was wondering how is the best way to do that? I need the parameters of the fitted curve. Thank you

---

## [SimpleITK tutorial not able to read images.](https://discourse.itk.org/t/simpleitk-tutorial-not-able-to-read-images/5859)

<div class="topic-metadata">

**Author:** [@Ilias\_P](https://discourse.itk.org/u/Ilias_P)\
**Replies:** 1\
**Last updated:** [April 9, 2023, 11:39am UTC](https://discourse.itk.org/t/simpleitk-tutorial-not-able-to-read-images/5859 "2023-04-09T11:39:11Z")

</div>

I am following the simpleITK tutorial and these two lines of code throw this error. image\_viewer = sitk.ImageViewer() image\_viewer.Execute(sitk.ReadImage(fetch\_data(“SimpleITK.jpg”))) Exception thrown in SimpleITK Ima…

---

## [Thanks and congratulations](https://discourse.itk.org/t/thanks-and-congratulations/5858)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 0\
**Last updated:** [April 8, 2023, 1:04am UTC](https://discourse.itk.org/t/thanks-and-congratulations/5858 "2023-04-08T01:04:27Z")

</div>

Dear community, I want to share a little nugget of joy. ITK is free software developed by scientists, engineers and other professionals. Kitware allows humanity to enjoy the benefits of it. Thank you for that. May be y…

---

## [Elastix presentation and demos, April & May 2023!](https://discourse.itk.org/t/elastix-presentation-and-demos-april-may-2023/5854)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 0\
**Last updated:** [April 6, 2023, 10:23am UTC](https://discourse.itk.org/t/elastix-presentation-and-demos-april-may-2023/5854 "2023-04-06T10:23:59Z")

</div>

An announcement to you all, from my LKEB/LUMC colleague Konstantinos Ntatsis: Dear all, We are planning to give a series of short sessions on elastix in April and May 2023. They will last approximately ~30min each. A…

---

## [Error with ITKMinimalPathExtraction](https://discourse.itk.org/t/error-with-itkminimalpathextraction/5853)

<div class="topic-metadata">

**Author:** [@DVigneault](https://discourse.itk.org/u/DVigneault)\
**Replies:** 2\
**Last updated:** [April 5, 2023, 9:16pm UTC](https://discourse.itk.org/t/error-with-itkminimalpathextraction/5853 "2023-04-05T21:16:43Z")

</div>

All– I’ve been having a bit of trouble with the ITKMinimalPathExtraction remote module \[1\]. In the code below, I create a simple axis-aligned cylinder (foreground 1, background 0), and put my starting and ending points…

---

## [No module named ‘download data’](https://discourse.itk.org/t/no-module-named-download-data/5852)

<div class="topic-metadata">

**Author:** [@jp13579](https://discourse.itk.org/u/jp13579)\
**Replies:** 1\
**Last updated:** [April 5, 2023, 12:58am UTC](https://discourse.itk.org/t/no-module-named-download-data/5852 "2023-04-05T00:58:00Z")

</div>

Hello all, I am new to using SITK and I’m trying to follow the Environment setup tutorial but when I try to run the following “from download data import fetch\_data, fetch\_data\_all” I get an error saying: “No module name…

---

## [Provide Your Thoughts on Kitware's Training Courses](https://discourse.itk.org/t/provide-your-thoughts-on-kitwares-training-courses/5850)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [April 4, 2023, 1:04pm UTC](https://discourse.itk.org/t/provide-your-thoughts-on-kitwares-training-courses/5850 "2023-04-04T13:04:43Z")

</div>

Kitware is looking for input about our paid public training courses. Our goal is to offer the highest quality, most relevant training material to help users and developers become experts with our popular open source soft…

---

## [How to use code to implement the function of colormap image and overlay two images like itksnap](https://discourse.itk.org/t/how-to-use-code-to-implement-the-function-of-colormap-image-and-overlay-two-images-like-itksnap/5840)

<div class="topic-metadata">

**Author:** [@ljjiayou](https://discourse.itk.org/u/ljjiayou)\
**Replies:** 2\
**Last updated:** [April 4, 2023, 3:28am UTC](https://discourse.itk.org/t/how-to-use-code-to-implement-the-function-of-colormap-image-and-overlay-two-images-like-itksnap/5840 "2023-04-04T03:28:30Z")

</div>

this my code, why it goes wrong?What code should I write colormap = sitk.Colormap(4) # jet mapped\_image = sitk.ScalarToRGBColormap(im1, colormap) image\_viewer.Execute(mapped\_image)

---

## [Transforming Points by using ScaleSkewVersor3DTransform](https://discourse.itk.org/t/transforming-points-by-using-scaleskewversor3dtransform/5845)

<div class="topic-metadata">

**Author:** [@miaomiaomiao](https://discourse.itk.org/u/miaomiaomiao)\
**Replies:** 1\
**Last updated:** [April 2, 2023, 9:51pm UTC](https://discourse.itk.org/t/transforming-points-by-using-scaleskewversor3dtransform/5845 "2023-04-02T21:51:23Z")

</div>

Hello dear community, I register MRI images (moving) with different spacings and shapes to a template MRI (fixed) with spacing \[1.0; 1.0; 1.0\] and Shape\[193, 229, 193\]. I also have points for each moving MRI that repres…

---

## [Unable to get DICOM SQ tags from simpleITK series reader metadata keys](https://discourse.itk.org/t/unable-to-get-dicom-sq-tags-from-simpleitk-series-reader-metadata-keys/2321)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Replies:** 8\
**Last updated:** [April 1, 2023, 12:36pm UTC](https://discourse.itk.org/t/unable-to-get-dicom-sq-tags-from-simpleitk-series-reader-metadata-keys/2321 "2023-04-01T12:36:35Z")

</div>

Hi, I am I read a dicom series using series reader. I wanted to read dicom metadata but I could not see metadata keys that further has collection of dicom tags in it. As an example I wish to read 0054|0016 which further …

---

## [Get dimensions of mask from .nii file](https://discourse.itk.org/t/get-dimensions-of-mask-from-nii-file/5842)

<div class="topic-metadata">

**Author:** [@mik.ro](https://discourse.itk.org/u/mik.ro)\
**Replies:** 3\
**Last updated:** [March 31, 2023, 5:53pm UTC](https://discourse.itk.org/t/get-dimensions-of-mask-from-nii-file/5842 "2023-03-31T17:53:35Z")

</div>

Hello, I have to extract mask dimension from .nii files. There are two files, one is with medical image, second with mask created in 3D-slicer. t1\_fn = 'first\_file.nii' t2\_fn = 'second\_file\_with\_mask.nii' sitk\_t1 = sit…

---

## [How to correct for mask volume in ITK?](https://discourse.itk.org/t/how-to-correct-for-mask-volume-in-itk/3252)

<div class="topic-metadata">

**Author:** [@3omarkamal](https://discourse.itk.org/u/3omarkamal)\
**Replies:** 11\
**Last updated:** [March 31, 2023, 2:46pm UTC](https://discourse.itk.org/t/how-to-correct-for-mask-volume-in-itk/3252 "2023-03-31T14:46:46Z")

</div>

I use: shape\_stats = sitk.LabelShapeStatisticsImageFilter() shape\_stats.Execute(ROI) vol\_roi = shape\_stats.GetPhysicalSize(1) to get a Region of interest volume. However, I am not sure of the unit. I looked at the sa…

---

## [Include additional files in itk external module python wheels](https://discourse.itk.org/t/include-additional-files-in-itk-external-module-python-wheels/5794)

<div class="topic-metadata">

**Author:** [@Stephen\_Aylward](https://discourse.itk.org/u/Stephen_Aylward)\
**Replies:** 7\
**Last updated:** [March 30, 2023, 7:45pm UTC](https://discourse.itk.org/t/include-additional-files-in-itk-external-module-python-wheels/5794 "2023-03-30T19:45:07Z")

</div>

The new scripts for building external modules are amazing! What is the magic to include additional files in a python wheel for an external module using the new scripts? For example, if I have a project directory itkFO…

---

## [MaskedFFTCrossCorrelation: Output is stuck at center](https://discourse.itk.org/t/maskedfftcrosscorrelation-output-is-stuck-at-center/5838)

<div class="topic-metadata">

**Author:** [@elapins](https://discourse.itk.org/u/elapins)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 6:16pm UTC](https://discourse.itk.org/t/maskedfftcrosscorrelation-output-is-stuck-at-center/5838 "2023-03-30T18:16:18Z")

</div>

Hello, I have been working with the MaskedFFTCrossCorrelation() function and it has been great. However, I am now a bit confused by the output that I am getting. The following images are what I have being input into th…

---

## [how to disable blend in itk montage CompleteMontage](https://discourse.itk.org/t/how-to-disable-blend-in-itk-montage-completemontage/5839)

<div class="topic-metadata">

**Author:** [@allen](https://discourse.itk.org/u/allen)\
**Replies:** 1\
**Last updated:** [March 30, 2023, 6:13pm UTC](https://discourse.itk.org/t/how-to-disable-blend-in-itk-montage-completemontage/5839 "2023-03-30T18:13:20Z")

</div>

hello, i want to disable the blend behavior to save some time, only locate the tiles to the location PhaseCorrelation gets, but not calculate the overlap area pixel DistanceFromEdge etc, is it possible by edit the itkTi…

---

## [How to save the output of StrainImageFilter (Tensor) with ITK?](https://discourse.itk.org/t/how-to-save-the-output-of-strainimagefilter-tensor-with-itk/5834)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 7:25pm UTC](https://discourse.itk.org/t/how-to-save-the-output-of-strainimagefilter-tensor-with-itk/5834 "2023-03-29T19:25:32Z")

</div>

1 How to save the output of StrainImageFilter (Tensor)? Hello! I am trying to save the output of the examples/numpy\_to\_strain.py (on the ITKStrain repo). I tried the naïve itk.imwrite, but I got the following issue. …

---

## [Creating Digitally Reconstructed Radiographs from Chest CT](https://discourse.itk.org/t/creating-digitally-reconstructed-radiographs-from-chest-ct/5801)

<div class="topic-metadata">

**Author:** [@BraveDistribution](https://discourse.itk.org/u/BraveDistribution)\
**Replies:** 10\
**Last updated:** [March 29, 2023, 11:34am UTC](https://discourse.itk.org/t/creating-digitally-reconstructed-radiographs-from-chest-ct/5801 "2023-03-29T11:34:13Z")

</div>

Hello all, I want to solve a 3D (CT) - 2D (fluoro/xray) registration task. I have found out so far that the most straightforward option is to first generate DRR based on CT and then register them. I am not sure how a g…

---

## [Co-registration of more than two images](https://discourse.itk.org/t/co-registration-of-more-than-two-images/5836)

<div class="topic-metadata">

**Author:** [@avigotsky](https://discourse.itk.org/u/avigotsky)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 11:34pm UTC](https://discourse.itk.org/t/co-registration-of-more-than-two-images/5836 "2023-03-28T23:34:12Z")

</div>

Hi, all, This this may a better question for #algorithms, but since I am new to ITK/SimpleITK, I will ask it here. Suppose I have three images—X, Y, and Z—that I want to register into the same space. I do not have a te…

---

## [How to co-register mask on neuroimage generated from RTStruct dicom file?](https://discourse.itk.org/t/how-to-co-register-mask-on-neuroimage-generated-from-rtstruct-dicom-file/5825)

<div class="topic-metadata">

**Author:** [@Sunita\_Patel](https://discourse.itk.org/u/Sunita_Patel)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 1:58pm UTC](https://discourse.itk.org/t/how-to-co-register-mask-on-neuroimage-generated-from-rtstruct-dicom-file/5825 "2023-03-27T13:58:54Z")

</div>

Dear Simple ITK Team, We have two DICOM series and two RTSTRUCT masks which are converted into Nifti files. The original dimension of the nifti files are (256, 256, 216). We are trying to do registration and resampling …

---

## [CMake says TBB version incompatible with ITK installed via conda/mamba](https://discourse.itk.org/t/cmake-says-tbb-version-incompatible-with-itk-installed-via-conda-mamba/5771)

<div class="topic-metadata">

**Author:** [@KrisThielemans](https://discourse.itk.org/u/KrisThielemans)\
**Replies:** 7\
**Last updated:** [March 25, 2023, 11:08am UTC](https://discourse.itk.org/t/cmake-says-tbb-version-incompatible-with-itk-installed-via-conda-mamba/5771 "2023-03-25T11:08:23Z")

</div>

Hi I installed ITK on a Windows 10 machine via mamba create -n pvc install petpvc libitk-devel (petpvc requires libitk). I then used (non-Conda) CMake 3.25.2 (and VS 2022) to try and build PETPVC sources. After settin…

---

## [FFT Correlation: Normalized Sum of Square Difference](https://discourse.itk.org/t/fft-correlation-normalized-sum-of-square-difference/5827)

<div class="topic-metadata">

**Author:** [@elapins](https://discourse.itk.org/u/elapins)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 4:06pm UTC](https://discourse.itk.org/t/fft-correlation-normalized-sum-of-square-difference/5827 "2023-03-24T16:06:45Z")

</div>

Hello, I am wondering if it would be possible to extend the FFTNormalizedCrossCorrelation function to use Normalized Sum of Square Differences instead of Cross Correlation metric? Thank you!

---

## [Applying a transform from .tfm file in ITK](https://discourse.itk.org/t/applying-a-transform-from-tfm-file-in-itk/5566)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.itk.org/u/isuruwi)\
**Replies:** 5\
**Last updated:** [December 13, 2022, 2:59pm UTC](https://discourse.itk.org/t/applying-a-transform-from-tfm-file-in-itk/5566 "2022-12-13T14:59:08Z")

</div>

Hi, I have a transform file in.tfm format that was created with 3D-slicer (attached it here for further reference). Now I’d like to read it from ITK and apply it to a specific point as in the example as in the example b…

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

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