# \#itk

**URL:** https://discourse.itk.org/tag/itk/192.md?page=1

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

**Page:** 2

---

## [About calculating FA(Fractional Anisotropy) with TensorRelativeAnisotropyImageFilter](https://discourse.itk.org/t/about-calculating-fa-fractional-anisotropy-with-tensorrelativeanisotropyimagefilter/7437)

<div class="topic-metadata">

**Author:** [@Pinyu\_Huang](https://discourse.itk.org/u/Pinyu_Huang)\
**Replies:** 0\
**Last updated:** [February 18, 2025, 8:07am UTC](https://discourse.itk.org/t/about-calculating-fa-fractional-anisotropy-with-tensorrelativeanisotropyimagefilter/7437 "2025-02-18T08:07:08Z")

</div>

Hi there, I tried to calculate FA and PDD for streamlines tractography with TensorRelativeAnisotropyImageFilter. And I basically follow the workflow in the website (ITK: Examples/Filtering/DiffusionTensor3DReconstructio…

---

## [TensorFractionalAnisotropyImageFilter calculate FA bigger than 1](https://discourse.itk.org/t/tensorfractionalanisotropyimagefilter-calculate-fa-bigger-than-1/7432)

<div class="topic-metadata">

**Author:** [@Pinyu\_Huang](https://discourse.itk.org/u/Pinyu_Huang)\
**Replies:** 4\
**Last updated:** [February 18, 2025, 1:42am UTC](https://discourse.itk.org/t/tensorfractionalanisotropyimagefilter-calculate-fa-bigger-than-1/7432 "2025-02-18T01:42:21Z")

</div>

I use TensorFractionalAnisotropyImageFilter to calculate FA for the DTI image. The code is: using Image3DType = itk::Image\<float, 3\> using FAFilterType = itk::TensorFractionalAnisotropyImageFilter\<TensorReconstructionFi…

---

## [Imagetovtkimagefilter update() blocks main thread for few seconds](https://discourse.itk.org/t/imagetovtkimagefilter-update-blocks-main-thread-for-few-seconds/7429)

<div class="topic-metadata">

**Author:** [@Manjunath\_AV](https://discourse.itk.org/u/Manjunath_AV)\
**Replies:** 0\
**Last updated:** [February 12, 2025, 6:47pm UTC](https://discourse.itk.org/t/imagetovtkimagefilter-update-blocks-main-thread-for-few-seconds/7429 "2025-02-12T18:47:18Z")

</div>

I am working with ITK and VTK to convert an itk::Image to a vtkImageData using the following code: typedef itk::ImageToVTKImageFilter ConverterType; typename ConverterType::Pointer converter = ConverterType::New(); co…

---

## [ITK vs PyTorch calculation for Mutual Information](https://discourse.itk.org/t/itk-vs-pytorch-calculation-for-mutual-information/7365)

<div class="topic-metadata">

**Author:** [@thanuja](https://discourse.itk.org/u/thanuja)\
**Replies:** 3\
**Last updated:** [January 31, 2025, 2:41pm UTC](https://discourse.itk.org/t/itk-vs-pytorch-calculation-for-mutual-information/7365 "2025-01-31T14:41:06Z")

</div>

Hi All, I’m calculating the mutual information metric value between two 3D images using ITK and PyTorch and getting two different values for the same bin size. The sample values are (ITK and Pytorch): 0.53140919429619…

---

## [Why is ITK running slower in C++ than in python?](https://discourse.itk.org/t/why-is-itk-running-slower-in-c-than-in-python/7394)

<div class="topic-metadata">

**Author:** [@LuOSS](https://discourse.itk.org/u/LuOSS)\
**Replies:** 4\
**Last updated:** [January 30, 2025, 7:55pm UTC](https://discourse.itk.org/t/why-is-itk-running-slower-in-c-than-in-python/7394 "2025-01-30T19:55:44Z")

</div>

I have written a small program in python where a combination of morphology, masking and gaussian filters are applied to a 3D image. It is made with numpy arrays and scipy functions but I thought to use a dedicated image …

---

## [Can't compile RTK Python Wrapper - How do other ITK Modules address this exporting problem?](https://discourse.itk.org/t/cant-compile-rtk-python-wrapper-how-do-other-itk-modules-address-this-exporting-problem/5534)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.itk.org/u/eric)\
**Replies:** 4\
**Last updated:** [January 19, 2025, 3:07pm UTC](https://discourse.itk.org/t/cant-compile-rtk-python-wrapper-how-do-other-itk-modules-address-this-exporting-problem/5534 "2025-01-19T15:07:31Z")

</div>

Hi Everyone, I hope this is the right place to have this discussion. I’ve been trying to compile RTK with Cuda and Python wrapping on windows for a while and the last time I tried, I was suggested to just disable the p…

---

## [Streaming data to ITK through local disk](https://discourse.itk.org/t/streaming-data-to-itk-through-local-disk/7348)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 2:50pm UTC](https://discourse.itk.org/t/streaming-data-to-itk-through-local-disk/7348 "2024-12-13T14:50:55Z")

</div>

we have a data analysis library that we have been building out over the last few years. In a previous version we were able to hand ITK a wrapped pointer to our data for ITK to process. In our new version this is not poss…

---

## [pyinstaller with RTK+VTK](https://discourse.itk.org/t/pyinstaller-with-rtk-vtk/6556)

<div class="topic-metadata">

**Author:** [@zhangm](https://discourse.itk.org/u/zhangm)\
**Replies:** 8\
**Last updated:** [December 11, 2024, 3:17am UTC](https://discourse.itk.org/t/pyinstaller-with-rtk-vtk/6556 "2024-12-11T03:17:42Z")

</div>

I use pyinstaller to generate a demo that can reconstruction data and show the result. The reconstruction is similar to FirstCudaReconstruction.py. My list of installed package is below. Package Versio…

---

## [Error of itk.DemonsRegistrationFilter\[ImageType, ImageType\].New()](https://discourse.itk.org/t/error-of-itk-demonsregistrationfilter-imagetype-imagetype-new/7331)

<div class="topic-metadata">

**Author:** [@siyuanch](https://discourse.itk.org/u/siyuanch)\
**Replies:** 2\
**Last updated:** [November 29, 2024, 3:37pm UTC](https://discourse.itk.org/t/error-of-itk-demonsregistrationfilter-imagetype-imagetype-new/7331 "2024-11-29T15:37:30Z")

</div>

Hi all, I meet an error that there will always be an error of itk.support.extras.TemplateTypeError: itk.DemonsRegistrationFilter is not wrapped for input type \`itk.Image\[itk.F,3\], itk.Image\[itk.F,3\]\`. To limit the size…

---

## [How to import unreal engine?](https://discourse.itk.org/t/how-to-import-unreal-engine/7197)

<div class="topic-metadata">

**Author:** [@sleighmaster](https://discourse.itk.org/u/sleighmaster)\
**Replies:** 5\
**Last updated:** [November 22, 2024, 2:21pm UTC](https://discourse.itk.org/t/how-to-import-unreal-engine/7197 "2024-11-22T14:21:50Z")

</div>

I’m trying to use ITK to read dcm files from Unreal Engine. After cmake, I built AllBuild in release mode. I then built the Insertall project and added it to the directory where the Unreal project is located. The cmake…

---

## [Potential acceleration for registration with BSplineTransform in metric derivative calculation](https://discourse.itk.org/t/potential-acceleration-for-registration-with-bsplinetransform-in-metric-derivative-calculation/7317)

<div class="topic-metadata">

**Author:** [@ljm898](https://discourse.itk.org/u/ljm898)\
**Replies:** 4\
**Last updated:** [November 22, 2024, 2:57am UTC](https://discourse.itk.org/t/potential-acceleration-for-registration-with-bsplinetransform-in-metric-derivative-calculation/7317 "2024-11-22T02:57:07Z")

</div>

Hi All, I believe I’ve identified a potential computational bottleneck when computing registrations involving BSplineTransforms, specifically during derivative calculation in the v3 registration metrics (might also be a…

---

## [BSplineTransform not optimising in 2D-3D registration setting](https://discourse.itk.org/t/bsplinetransform-not-optimising-in-2d-3d-registration-setting/7241)

<div class="topic-metadata">

**Author:** [@ljm898](https://discourse.itk.org/u/ljm898)\
**Replies:** 9\
**Last updated:** [October 23, 2024, 2:04pm UTC](https://discourse.itk.org/t/bsplinetransform-not-optimising-in-2d-3d-registration-setting/7241 "2024-10-23T14:04:06Z")

</div>

Hi All, I’m working on implementing 2D-3D deformable registration in ITK (v5.3.0) using a BSplineTransform to fit deformable motion, but have hit a wall optimising a BSplineTransform. The approach I’ve taken is to compo…

---

## [how to perform CBCT 3D reconstruction given a squence of 2D .raw X-ray images and corresponding projection matrices](https://discourse.itk.org/t/how-to-perform-cbct-3d-reconstruction-given-a-squence-of-2d-raw-x-ray-images-and-corresponding-projection-matrices/7251)

<div class="topic-metadata">

**Author:** [@zhangxiang](https://discourse.itk.org/u/zhangxiang)\
**Replies:** 10\
**Last updated:** [October 14, 2024, 1:01pm UTC](https://discourse.itk.org/t/how-to-perform-cbct-3d-reconstruction-given-a-squence-of-2d-raw-x-ray-images-and-corresponding-projection-matrices/7251 "2024-10-14T13:01:08Z")

</div>

I want to do this work in The Reconstruction Toolkit, and I know how to use a .mha file to reconstruction. But i do not know how to store .raw image sequence into a .mha file(or multiple if possible) with correct origin…

---

## [Same patient's dicom volumes has different dimensions, spacing and slices numbers](https://discourse.itk.org/t/same-patients-dicom-volumes-has-different-dimensions-spacing-and-slices-numbers/7256)

<div class="topic-metadata">

**Author:** [@Deniz\_Ceylan](https://discourse.itk.org/u/Deniz_Ceylan)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 12:52pm UTC](https://discourse.itk.org/t/same-patients-dicom-volumes-has-different-dimensions-spacing-and-slices-numbers/7256 "2024-10-14T12:52:03Z")

</div>

Hi, I’ve looked for solutions here but i couldnt find. Sorry if it’s a duplication. I have 11 different DICOM volumes of same patient (converted to nifti) with absolutely different dimensions. I want to use caPTk for…

---

## [Building ITK: Error With Algorithim Module](https://discourse.itk.org/t/building-itk-error-with-algorithim-module/5927)

<div class="topic-metadata">

**Author:** [@ramen-newdals](https://discourse.itk.org/u/ramen-newdals)\
**Replies:** 22\
**Last updated:** [October 9, 2024, 2:06pm UTC](https://discourse.itk.org/t/building-itk-error-with-algorithim-module/5927 "2024-10-09T14:06:33Z")

</div>

Hello ITK Community, I am attempting to rebuild the ITK project. I had a successful build on the same system before, but I am having problems with this rebuild (The previous build was completed with the VMTK super build…

---

## [creation of dicom with less size](https://discourse.itk.org/t/creation-of-dicom-with-less-size/6372)

<div class="topic-metadata">

**Author:** [@George\_Z](https://discourse.itk.org/u/George_Z)\
**Replies:** 6\
**Last updated:** [August 1, 2024, 4:46pm UTC](https://discourse.itk.org/t/creation-of-dicom-with-less-size/6372 "2024-08-01T16:46:24Z")

</div>

Hello, I am trying to reduce dicom file size when creating a new dicom by converting from bmp to png but I do not see the file size getting reduced, png use compession so logically I have less file size. Best Regards …

---

## [Trouble when reading some dcm files](https://discourse.itk.org/t/trouble-when-reading-some-dcm-files/7190)

<div class="topic-metadata">

**Author:** [@Xoz](https://discourse.itk.org/u/Xoz)\
**Replies:** 4\
**Last updated:** [August 26, 2024, 7:29am UTC](https://discourse.itk.org/t/trouble-when-reading-some-dcm-files/7190 "2024-08-26T07:29:21Z")

</div>

Hi everyone, I met a problem when reading some dcm files recently when using itk-wasm, in the past the input files was usually a sort of single slice dcm files, but some newer ones became only one file that seems contai…

---

## [How to use ITKMontage to stitch segmentation label images?](https://discourse.itk.org/t/how-to-use-itkmontage-to-stitch-segmentation-label-images/6611)

<div class="topic-metadata">

**Author:** [@Mazen\_Soufi](https://discourse.itk.org/u/Mazen_Soufi)\
**Replies:** 8\
**Last updated:** [August 15, 2024, 3:31pm UTC](https://discourse.itk.org/t/how-to-use-itkmontage-to-stitch-segmentation-label-images/6611 "2024-08-15T15:31:30Z")

</div>

Hi, I’m trying to use ITKMontage’s TileMergeImageFilter to stitch segmentation label images (uint8) using the transformations obtained from grayscale images. The file below shows at its header that the default interpol…

---

## [Compute eigen vectors from 3D Hessian matrix in Python](https://discourse.itk.org/t/compute-eigen-vectors-from-3d-hessian-matrix-in-python/7134)

<div class="topic-metadata">

**Author:** [@Maolin](https://discourse.itk.org/u/Maolin)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 2:57pm UTC](https://discourse.itk.org/t/compute-eigen-vectors-from-3d-hessian-matrix-in-python/7134 "2024-07-31T14:57:10Z")

</div>

Hi all, I saw the function itk.SymmetricEigenAnalysisImageFilter can compute the eigen values from a hessian image, but I didn’t see a function that could compute te eigen vectors from a hessian image. Could you help me…

---

## [How to create vtp file from nrrd file for further geometry view?](https://discourse.itk.org/t/how-to-create-vtp-file-from-nrrd-file-for-further-geometry-view/7141)

<div class="topic-metadata">

**Author:** [@babayka](https://discourse.itk.org/u/babayka)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 11:44am UTC](https://discourse.itk.org/t/how-to-create-vtp-file-from-nrrd-file-for-further-geometry-view/7141 "2024-07-31T11:44:45Z")

</div>

I am new to both itk/vtk and currently would like to display a 3d render of the vtp file of brain taken converted from nrrd/nifti file, where the final render will be shown in frontend using javascript(react), and the co…

---

## [How to extract blood vessel's orientation in Python?](https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127)

<div class="topic-metadata">

**Author:** [@Maolin](https://discourse.itk.org/u/Maolin)\
**Replies:** 2\
**Last updated:** [July 28, 2024, 7:34pm UTC](https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127 "2024-07-28T19:34:59Z")

</div>

Hi all, I am new to ITK and I’d like to look for a way to use simpleITk or Python ITK to extract the blood vessel’s orientation. I reviewd the function itk.hessian\_recursive\_gaussian\_image\_filter that can compute the h…

---

## [Is better to use \`itk.imread(dir)\` than \`itk.imread(file\_list)\`?](https://discourse.itk.org/t/is-better-to-use-itk-imread-dir-than-itk-imread-file-list/7123)

<div class="topic-metadata">

**Author:** [@jinquan\_guan](https://discourse.itk.org/u/jinquan_guan)\
**Replies:** 6\
**Last updated:** [July 25, 2024, 2:21pm UTC](https://discourse.itk.org/t/is-better-to-use-itk-imread-dir-than-itk-imread-file-list/7123 "2024-07-25T14:21:43Z")

</div>

I made an experiment about the itk.imread function, and found something interesting. I putted .dcm files with the same series ID in a directory. And then convert the dicom data into nii.gz format. Here come the differen…

---

## [Variably Spaced DICOM Data Support](https://discourse.itk.org/t/variably-spaced-dicom-data-support/6699)

<div class="topic-metadata">

**Author:** [@Michael\_M](https://discourse.itk.org/u/Michael_M)\
**Replies:** 3\
**Last updated:** [July 19, 2024, 7:30pm UTC](https://discourse.itk.org/t/variably-spaced-dicom-data-support/6699 "2024-07-19T19:30:19Z")

</div>

A not uncommon practice in the medical world involves scanning a patient with different slice thicknesses in different parts of the anatomy, all within the same DICOM series. For example, the patient is imaged with CT o…

---

## [Image Spacing Value Interactions in ITK Python Wrapping](https://discourse.itk.org/t/image-spacing-value-interactions-in-itk-python-wrapping/6707)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 8\
**Last updated:** [July 12, 2024, 8:48pm UTC](https://discourse.itk.org/t/image-spacing-value-interactions-in-itk-python-wrapping/6707 "2024-07-12T20:48:49Z")

</div>

Dear, esteemed… Here’s an easy question for your consideration. Say, I’m having this sort of interaction with ITK in Python console: oif = itk.SpatialObjectToImageFilter\[itk.SpatialObject\[2\], itk.Image\[itk.UC, 2\]\].New()…

---

## [Convert .nii.gz warp to .h5 (with proper header)](https://discourse.itk.org/t/convert-nii-gz-warp-to-h5-with-proper-header/6673)

<div class="topic-metadata">

**Author:** [@smeisler](https://discourse.itk.org/u/smeisler)\
**Replies:** 10\
**Last updated:** [July 10, 2024, 8:08pm UTC](https://discourse.itk.org/t/convert-nii-gz-warp-to-h5-with-proper-header/6673 "2024-07-10T20:08:11Z")

</div>

Hi! I have been modifying an anatomical processing workflow that largely uses ANTs. I have been trying to incorporate FreeSurfer’s synthmorph to calculate a registration, which outputs in RAS convention. I have been abl…

---

## [In Affine Transform, Get/SetTranslation Same As Get/SetOffset?](https://discourse.itk.org/t/in-affine-transform-get-settranslation-same-as-get-setoffset/6744)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 1\
**Last updated:** [July 3, 2024, 12:12pm UTC](https://discourse.itk.org/t/in-affine-transform-get-settranslation-same-as-get-setoffset/6744 "2024-07-03T12:12:31Z")

</div>

Greetings, everyone. Looking at an instance of AffineTransform innards shows this: AffineTransform (000002503E609850) RTTI typeinfo: class itk::AffineTransform\<double,3\> Reference Count: 1 Modified Time: 967 …

---

## [It is impossible to perform the fast Fourier transform on the image.](https://discourse.itk.org/t/it-is-impossible-to-perform-the-fast-fourier-transform-on-the-image/6717)

<div class="topic-metadata">

**Author:** [@xem123](https://discourse.itk.org/u/xem123)\
**Replies:** 6\
**Last updated:** [June 27, 2024, 12:04pm UTC](https://discourse.itk.org/t/it-is-impossible-to-perform-the-fast-fourier-transform-on-the-image/6717 "2024-06-27T12:04:50Z")

</div>

Hi all: question：I want to use the functions “itk::RealToHalfHermitianForwardFFTImageFilter” in ITK version 5.3 to perform fast Fourier transform and filtering on the image. However, an error occurred after I input an i…

---

## [Reading In Videofluoroscopy (VFS) AVIs, Converting to DICOM Series?](https://discourse.itk.org/t/reading-in-videofluoroscopy-vfs-avis-converting-to-dicom-series/6692)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 9\
**Last updated:** [June 14, 2024, 12:03am UTC](https://discourse.itk.org/t/reading-in-videofluoroscopy-vfs-avis-converting-to-dicom-series/6692 "2024-06-14T00:03:43Z")

</div>

Hello Everyone. I have a bunch of Videofluoroscopy (VFS) studies exported off the scanner in .avi format… I’m not surprised to see itk.imread('movi\_xyz.avi') in Python to tell me: RuntimeError: Could not create IO obj…

---

## [ITK to VTK Filter not working.](https://discourse.itk.org/t/itk-to-vtk-filter-not-working/6676)

<div class="topic-metadata">

**Author:** [@Satyaj\_Bhargava](https://discourse.itk.org/u/Satyaj_Bhargava)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 7:40pm UTC](https://discourse.itk.org/t/itk-to-vtk-filter-not-working/6676 "2024-06-05T19:40:28Z")

</div>

My code here is trying to read in an image as an itk image, turn it into a vtk image, flip it across the y axis, and show it. However, the display only shows black. (pixel values of 0). Why could this be? Here is the cod…

---

## [After compiling the ITK and RTK libraries, cannot use breakpoints to enter the corresponding source code in debug mode](https://discourse.itk.org/t/after-compiling-the-itk-and-rtk-libraries-cannot-use-breakpoints-to-enter-the-corresponding-source-code-in-debug-mode/6660)

<div class="topic-metadata">

**Author:** [@xem123](https://discourse.itk.org/u/xem123)\
**Replies:** 8\
**Last updated:** [June 2, 2024, 2:46am UTC](https://discourse.itk.org/t/after-compiling-the-itk-and-rtk-libraries-cannot-use-breakpoints-to-enter-the-corresponding-source-code-in-debug-mode/6660 "2024-06-02T02:46:14Z")

</div>

Hello everyone,I have a question to ask. I compiled the FFTW library separately before compiling it with ITK. Then, the Build and install processes were completed smoothly without any errors. Then, I placed my project …

[Previous page](https://discourse.itk.org/tag/itk/192.md?match_all_tags=true&tags%5B%5D=itk)

[Next page](https://discourse.itk.org/tag/itk/192.md?match_all_tags=true&page=2&tags%5B%5D=itk)
