# Latest

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

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

**Page:** 68

---

## [ITK: write volume image (sagittal/aixal/coronal) to 2D series dicom in axial direction](https://discourse.itk.org/t/itk-write-volume-image-sagittal-aixal-coronal-to-2d-series-dicom-in-axial-direction/3078)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 11:54am UTC](https://discourse.itk.org/t/itk-write-volume-image-sagittal-aixal-coronal-to-2d-series-dicom-in-axial-direction/3078 "2020-05-18T11:54:42Z")

</div>

I have a volume, and it may be acquired in sagittal/aixal/coronal direction. Then, I want to save it to 2D series in axial direction. How can we implement this function. Update: I use the itkExtractImageFilter to extra…

---

## [Problem in registration of two .mat file](https://discourse.itk.org/t/problem-in-registration-of-two-mat-file/3085)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 0\
**Last updated:** [May 17, 2020, 9:01pm UTC](https://discourse.itk.org/t/problem-in-registration-of-two-mat-file/3085 "2020-05-17T21:01:42Z")

</div>

Hi, I am using the following code for registering two sets of points. my input fixed and moving images are in .mat file but code is giving me the error. does anyone know the solution ? // Last used for diaphragm registr…

---

## [Transfinite interpolation](https://discourse.itk.org/t/transfinite-interpolation/3079)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 1\
**Last updated:** [May 17, 2020, 5:38pm UTC](https://discourse.itk.org/t/transfinite-interpolation/3079 "2020-05-17T17:38:27Z")

</div>

Hi, I want to use transfinite interpolation to fill the region inside the image. I want to know if there is any function or code in ITK that could do this? I already had the positions of the white points. Thanks.

---

## [Find the location of points of the 2D projection on 3D image](https://discourse.itk.org/t/find-the-location-of-points-of-the-2d-projection-on-3d-image/3081)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 1\
**Last updated:** [May 17, 2020, 5:22pm UTC](https://discourse.itk.org/t/find-the-location-of-points-of-the-2d-projection-on-3d-image/3081 "2020-05-17T17:22:22Z")

</div>

Hi, I used this code to get the projection of my 3D image on the axial plane. I did some image processing on the 2D projection and I got some points on the 2D image. Now I want to find the coordinates of those points on …

---

## [Convert 3D image into 4D image with time](https://discourse.itk.org/t/convert-3d-image-into-4d-image-with-time/3074)

<div class="topic-metadata">

**Author:** [@Zhehao\_Zhang](https://discourse.itk.org/u/Zhehao_Zhang)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 5:42pm UTC](https://discourse.itk.org/t/convert-3d-image-into-4d-image-with-time/3074 "2020-05-15T17:42:33Z")

</div>

I am using ITK and RTK to generate several 3D images (x,y,z) with different time. I want to save them into one .mha file, that’s to say, the desired data format is (x,y,z,t). I am doing this on Python and I hope ‘itk.Jo…

---

## [Set Photometric Interpretation for GDCMImageIO as MONOCHROME2 in SimpleITK](https://discourse.itk.org/t/set-photometric-interpretation-for-gdcmimageio-as-monochrome2-in-simpleitk/3073)

<div class="topic-metadata">

**Author:** [@theo-barfoot](https://discourse.itk.org/u/theo-barfoot)\
**Replies:** 8\
**Last updated:** [May 15, 2020, 3:30pm UTC](https://discourse.itk.org/t/set-photometric-interpretation-for-gdcmimageio-as-monochrome2-in-simpleitk/3073 "2020-05-15T15:30:27Z")

</div>

I am trying to read diffusion MRI scans using SimpleITK in Python. I am using the ImageFileReader with the GDCMImageIO interface. In the DICOM header the tag (0028, 0004) Photometric Interpretation is set as MONOCHROME1.…

---

## [Jacobian of B-spline coefficients](https://discourse.itk.org/t/jacobian-of-b-spline-coefficients/3070)

<div class="topic-metadata">

**Author:** [@rijobro](https://discourse.itk.org/u/rijobro)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 12:55pm UTC](https://discourse.itk.org/t/jacobian-of-b-spline-coefficients/3070 "2020-05-15T12:55:35Z")

</div>

For a motion-estimation algorithm, we’d like to be able to calculate the Jacboian of b-spline coefficients. Alternatively (and less computationally expensive), we’d like to be able to apply this Jacboian onto a pre-exist…

---

## [windows builds using msys2 - threading issues](https://discourse.itk.org/t/windows-builds-using-msys2-threading-issues/2648)

<div class="topic-metadata">

**Author:** [@richard.beare](https://discourse.itk.org/u/richard.beare)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 11:02am UTC](https://discourse.itk.org/t/windows-builds-using-msys2-threading-issues/2648 "2020-05-15T11:02:48Z")

</div>

Hi, Moving some long running work to discourse after discussion with @dzenanz … My question is how to enable TBB under msys2. Detailed context below. The error I see when enabling the TBB module is about the location …

---

## [Why is the first axis swapped in ITK versus SimpleITK?](https://discourse.itk.org/t/why-is-the-first-axis-swapped-in-itk-versus-simpleitk/3055)

<div class="topic-metadata">

**Author:** [@jonasteuwen](https://discourse.itk.org/u/jonasteuwen)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 10:25am UTC](https://discourse.itk.org/t/why-is-the-first-axis-swapped-in-itk-versus-simpleitk/3055 "2020-05-15T10:25:08Z")

</div>

I want to read a DICOM series with ITK (5.1rc) and compare it with the SimpleITK version: def read\_dcm\_series\_sitk(files): file\_reader = sitk.ImageFileReader() file\_reader.SetFileName(str(files\[0\])) file\_rea…

---

## [SimpleITK 2.0 Release Candidate 1](https://discourse.itk.org/t/simpleitk-2-0-release-candidate-1/2851)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 12:47am UTC](https://discourse.itk.org/t/simpleitk-2-0-release-candidate-1/2851 "2020-05-15T00:47:26Z")

</div>

Announcement Announcing the SimpleITK 2.0 Release Candidate 1! NOTE: SimpleITK neither supports Python 2.7 nor provides 32-bit binaries as of version 2.0. Installing SimpleITK Complete instructions on getting started …

---

## [2 errors when trying to build Unity+MagicLeap plugin](https://discourse.itk.org/t/2-errors-when-trying-to-build-unity-magicleap-plugin/3066)

<div class="topic-metadata">

**Author:** [@Henco](https://discourse.itk.org/u/Henco)\
**Replies:** 10\
**Last updated:** [May 14, 2020, 10:09pm UTC](https://discourse.itk.org/t/2-errors-when-trying-to-build-unity-magicleap-plugin/3066 "2020-05-14T22:09:49Z")

</div>

I’m trying to create a native plugin that uses the Insight Toolkit in a Unity scene on a MagicLeap headset. I’ve built my library binaries with CMake and I’ve also used CMake to build a plugin that works inside the Unity…

---

## [ITK python itkMeshF3\_Pointer](https://discourse.itk.org/t/itk-python-itkmeshf3-pointer/3061)

<div class="topic-metadata">

**Author:** [@cg2](https://discourse.itk.org/u/cg2)\
**Replies:** 6\
**Last updated:** [May 14, 2020, 5:43pm UTC](https://discourse.itk.org/t/itk-python-itkmeshf3-pointer/3061 "2020-05-14T17:43:07Z")

</div>

Hi, One of the module interface method I’m working on takes an itk::SmartPointer\<itk::Mesh\<float, 3\>\> as parameter. In python, this translates to itkMeshF3\_Pointer. I tries to convert the output of itk.MeshFileReader t…

---

## [Monitoring registration progress in python - and status of itk vs simpleitk for registration](https://discourse.itk.org/t/monitoring-registration-progress-in-python-and-status-of-itk-vs-simpleitk-for-registration/3051)

<div class="topic-metadata">

**Author:** [@tvercaut](https://discourse.itk.org/u/tvercaut)\
**Replies:** 7\
**Last updated:** [May 14, 2020, 2:54am UTC](https://discourse.itk.org/t/monitoring-registration-progress-in-python-and-status-of-itk-vs-simpleitk-for-registration/3051 "2020-05-14T02:54:24Z")

</div>

As I started to discuss in a different thread (Can I use conjugate gradient optimizer for registration in python?How can I do ?), I wanted to try out performing image registration in python with itk. While the initial ex…

---

## [Python ITK convert mha image to png image](https://discourse.itk.org/t/python-itk-convert-mha-image-to-png-image/3060)

<div class="topic-metadata">

**Author:** [@jo\_jo](https://discourse.itk.org/u/jo_jo)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 2:22am UTC](https://discourse.itk.org/t/python-itk-convert-mha-image-to-png-image/3060 "2020-05-14T02:22:15Z")

</div>

Hello, I am using itk with python for the first time. I am trying to convert a mha image (2d) to a png image. To be perfectly honest I am not sure how to use pixel types, I hope you can point me into the right direction …

---

## [How to see itk current code coverage](https://discourse.itk.org/t/how-to-see-itk-current-code-coverage/2217)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 4\
**Last updated:** [May 13, 2020, 9:29pm UTC](https://discourse.itk.org/t/how-to-see-itk-current-code-coverage/2217 "2020-05-13T21:29:21Z")

</div>

Hello, I can’t find a way to see the current coverage of itk, file per file… I’m sure I’m missing something, any help ? Thanks, Y.

---

## [use dicom's Physical Delta X as spacing?](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839)

<div class="topic-metadata">

**Author:** [@hubutui](https://discourse.itk.org/u/hubutui)\
**Replies:** 10\
**Last updated:** [May 13, 2020, 7:15pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839 "2020-05-13T19:15:33Z")

</div>

Hi, I’m trying to deal with the ultrasound images. And there is a Physical Delta X attribute (see here) in the DICOM files. Should it be used as spacing? I read the DICOM files with simpleitk, but the spacing is not the …

---

## [Similarity2DTransform moves image out of boundaries](https://discourse.itk.org/t/similarity2dtransform-moves-image-out-of-boundaries/2829)

<div class="topic-metadata">

**Author:** [@reox](https://discourse.itk.org/u/reox)\
**Replies:** 12\
**Last updated:** [May 13, 2020, 3:03pm UTC](https://discourse.itk.org/t/similarity2dtransform-moves-image-out-of-boundaries/2829 "2020-05-13T15:03:42Z")

</div>

I’m using Similarity2DTransform on binary image masks to pre-align the images before performing a B-spline registration step. In the majority of the images it works fine but there are a few examples where the Similarity2…

---

## [Function which calculates the determinant of an itk::Affine transform?](https://discourse.itk.org/t/function-which-calculates-the-determinant-of-an-itk-affine-transform/3057)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 4\
**Last updated:** [May 11, 2020, 7:01pm UTC](https://discourse.itk.org/t/function-which-calculates-the-determinant-of-an-itk-affine-transform/3057 "2020-05-11T19:01:18Z")

</div>

Is there a function to compute the determinant of the affine family of transforms?

---

## [Building GATE with ITKImageIO support](https://discourse.itk.org/t/building-gate-with-itkimageio-support/3005)

<div class="topic-metadata">

**Author:** [@somayehasadi](https://discourse.itk.org/u/somayehasadi)\
**Replies:** 18\
**Last updated:** [May 11, 2020, 1:17pm UTC](https://discourse.itk.org/t/building-gate-with-itkimageio-support/3005 "2020-05-11T13:17:11Z")

</div>

Dear ITK users I work with the Monte Carlo based Code of GATE and work on hyperthermia. So I need to use the ITK for running the program related to the optic and thermal output and take the output with the format of .mh…

---

## [how to modify a metric in itk](https://discourse.itk.org/t/how-to-modify-a-metric-in-itk/2929)

<div class="topic-metadata">

**Author:** [@pierrectl](https://discourse.itk.org/u/pierrectl)\
**Replies:** 28\
**Last updated:** [May 11, 2020, 12:37pm UTC](https://discourse.itk.org/t/how-to-modify-a-metric-in-itk/2929 "2020-05-11T12:37:59Z")

</div>

Hello everyone, I currently use itk in my project and I need to modify the metric of one of my registration between two 3d images. Is there an efficient way to implement my custom metric (in cpp)? Thank you in advance …

---

## [itk::FileOutputWindow](https://discourse.itk.org/t/itk-fileoutputwindow/3045)

<div class="topic-metadata">

**Author:** [@HsuehWen](https://discourse.itk.org/u/HsuehWen)\
**Replies:** 6\
**Last updated:** [May 11, 2020, 3:51am UTC](https://discourse.itk.org/t/itk-fileoutputwindow/3045 "2020-05-11T03:51:53Z")

</div>

I’m using ITK 5.0.0, I use itk::FileOutputWindow to log the warning messages by typedef itk::FileOutputWindow myFileOutputWindow; myFileOutputWindow::Pointer window = myFileOutputWindow::New(); window-\>SetFileName(“C…

---

## [Convert .nii, .img to .dcm](https://discourse.itk.org/t/convert-nii-img-to-dcm/3056)

<div class="topic-metadata">

**Author:** [@TWK](https://discourse.itk.org/u/TWK)\
**Replies:** 2\
**Last updated:** [May 10, 2020, 11:10am UTC](https://discourse.itk.org/t/convert-nii-img-to-dcm/3056 "2020-05-10T11:10:16Z")

</div>

Hello, I’m trying to convert .nii, .img files with double precision values to .dcm format. Due to the limit of .dcm format, I had to multiply pixel value of original image x 10000 and cast to the 16bit integer in order…

---

## [Problem creating a mesh](https://discourse.itk.org/t/problem-creating-a-mesh/3046)

<div class="topic-metadata">

**Author:** [@Elli](https://discourse.itk.org/u/Elli)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 4:37am UTC](https://discourse.itk.org/t/problem-creating-a-mesh/3046 "2020-05-09T04:37:51Z")

</div>

Dear all, I have a problem creating a mesh. I have a binary mask containing two (or more) VOIs. I split it up in the different VOIs using the connected component filter and create for each VOI a mesh (see code below). …

---

## [Registration method for two images with different origin and spacing](https://discourse.itk.org/t/registration-method-for-two-images-with-different-origin-and-spacing/3047)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 3\
**Last updated:** [May 9, 2020, 3:50am UTC](https://discourse.itk.org/t/registration-method-for-two-images-with-different-origin-and-spacing/3047 "2020-05-09T03:50:18Z")

</div>

I have an image with slices of 5mm thickness and I want to use deformable registration to register it with an image of 1mm thickness slices. Also, the origin is different for both the images. Is there any method to over…

---

## [Maintain physical location with registration?](https://discourse.itk.org/t/maintain-physical-location-with-registration/3043)

<div class="topic-metadata">

**Author:** [@radiplab](https://discourse.itk.org/u/radiplab)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 9:34pm UTC](https://discourse.itk.org/t/maintain-physical-location-with-registration/3043 "2020-05-08T21:34:40Z")

</div>

Hello - I’m trying to register a CT head to a CT head template, but I want the final registered image to maintain the same physical location as the original head CT. I used the method from introduction to registration (h…

---

## [Can I use conjugate gradient optimizer for registration in python?How can I do ?](https://discourse.itk.org/t/can-i-use-conjugate-gradient-optimizer-for-registration-in-python-how-can-i-do/2561)

<div class="topic-metadata">

**Author:** [@EdwardPeng](https://discourse.itk.org/u/EdwardPeng)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 2:58pm UTC](https://discourse.itk.org/t/can-i-use-conjugate-gradient-optimizer-for-registration-in-python-how-can-i-do/2561 "2020-05-08T14:58:27Z")

</div>

I followed the examples in Doxygen Docutment, but failed. There is no ConjugateGradientLineSearchOptimizerv4Template member in itk, and the itk.ConjugateGradientOptimizer can not be used by itk.ImageRegistrationMethodv4…

---

## [What are the differences between the definitions of mesh traits?](https://discourse.itk.org/t/what-are-the-differences-between-the-definitions-of-mesh-traits/3044)

<div class="topic-metadata">

**Author:** [@Sara\_Caffe](https://discourse.itk.org/u/Sara_Caffe)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 11:53am UTC](https://discourse.itk.org/t/what-are-the-differences-between-the-definitions-of-mesh-traits/3044 "2020-05-08T11:53:19Z")

</div>

I am seeing two types of mesh trait definition in ITK example codes. Could you please explain what are the differences? What is the mesh trait? what is it exactly showing for a mesh? Based on my understanding, it is th…

---

## [Additional python types for ITK remote/external modules](https://discourse.itk.org/t/additional-python-types-for-itk-remote-external-modules/2509)

<div class="topic-metadata">

**Author:** [@LucasGandel](https://discourse.itk.org/u/LucasGandel)\
**Replies:** 7\
**Last updated:** [May 8, 2020, 8:32am UTC](https://discourse.itk.org/t/additional-python-types-for-itk-remote-external-modules/2509 "2020-05-08T08:32:56Z")

</div>

ITK python wrapping infrastructure allows external/remote modules to extend the available types for a specific class. This has been heavily used when wrapping RTK for python, so that rtk python packages work with the pi…

---

## [final registration results](https://discourse.itk.org/t/final-registration-results/3041)

<div class="topic-metadata">

**Author:** [@Dodox](https://discourse.itk.org/u/Dodox)\
**Replies:** 5\
**Last updated:** [May 8, 2020, 1:48am UTC](https://discourse.itk.org/t/final-registration-results/3041 "2020-05-08T01:48:38Z")

</div>

Hello everyone, can someone of you explain to me why every time i run this program it gives me differents results (see picture) Cordially =================================================================== def mu…

---

## [Problem in adding two images](https://discourse.itk.org/t/problem-in-adding-two-images/3042)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 11:08pm UTC](https://discourse.itk.org/t/problem-in-adding-two-images/3042 "2020-05-07T23:08:25Z")

</div>

Hi, I used the following code to add two attached images; however, it does not work. Does any one know the problem with that? it set the startx and starty to 0. #include "itkImageFileReader.h" #include "itkImageFileWri…

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

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