# \#itk

**URL:** https://discourse.slicer.org/tag/itk/187.md

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

---

## [SimpleITK Direction Matrix Behavior](https://discourse.slicer.org/t/simpleitk-direction-matrix-behavior/42094)

<div class="topic-metadata">

**Author:** [@ColbyCoffman](https://discourse.slicer.org/u/ColbyCoffman)\
**Replies:** 0\
**Last updated:** [March 12, 2025, 4:43pm UTC](https://discourse.slicer.org/t/simpleitk-direction-matrix-behavior/42094 "2025-03-12T16:43:13Z")

</div>

Hello, I am having trouble understanding the behavior of the calculation of SimpleITK’s direction matrix. I sort a series in increasing z value based on ImagePositionPatient, but when i pass those files into ImageSeriesR…

---

## [Build errors with slicer (error LNK2005)](https://discourse.slicer.org/t/build-errors-with-slicer-error-lnk2005/36956)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [June 22, 2024, 2:25pm UTC](https://discourse.slicer.org/t/build-errors-with-slicer-error-lnk2005/36956 "2024-06-22T14:25:25Z")

</div>

Dear friends, This issue has troubled me for a long time. I have upgraded to different versions of Slicer(5.6,main) and also switched between different versions of Visual Studio, but the problem persists. Does anyone ha…

---

## [Include and compile itk, vtk as an ExternalProject or Submodule](https://discourse.slicer.org/t/include-and-compile-itk-vtk-as-an-externalproject-or-submodule/35337)

<div class="topic-metadata">

**Author:** [@weidonglian](https://discourse.slicer.org/u/weidonglian)\
**Replies:** 2\
**Last updated:** [April 7, 2024, 7:47pm UTC](https://discourse.slicer.org/t/include-and-compile-itk-vtk-as-an-externalproject-or-submodule/35337 "2024-04-07T19:47:51Z")

</div>

In my c++ application, I need to use both itk, vtk and qt. In order to make the development reproducible without build itk/vtk as a seperate cmake project which definitely has a lot overhead. I have tried so far add itk…

---

## [How to convert between ITK transforms and Slicer transform nodes?](https://discourse.slicer.org/t/how-to-convert-between-itk-transforms-and-slicer-transform-nodes/34074)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 8\
**Last updated:** [February 7, 2024, 4:06pm UTC](https://discourse.slicer.org/t/how-to-convert-between-itk-transforms-and-slicer-transform-nodes/34074 "2024-02-07T16:06:28Z")

</div>

I am creating a scripted module for ANTs registration (wip). It is invoking a wrapped itk::ANTSRegistration. For Slicer node ↔ ITKImage conversion, I am using previously added utility functions. But I am not aware of a c…

---

## [How to debug python library written in C++](https://discourse.slicer.org/t/how-to-debug-python-library-written-in-c/29364)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 10\
**Last updated:** [July 14, 2023, 6:28pm UTC](https://discourse.slicer.org/t/how-to-debug-python-library-written-in-c/29364 "2023-07-14T18:28:32Z")

</div>

I have a Scripted module which invokes functionality from ITKUltrasound. However, the result of this invocation is an all-zero image. Python unit test in ITKUltrasound itself produces non-zero output. What is the best wa…

---

## [Slicer progress from ITK Python filter](https://discourse.slicer.org/t/slicer-progress-from-itk-python-filter/28432)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 10:43pm UTC](https://discourse.slicer.org/t/slicer-progress-from-itk-python-filter/28432 "2023-03-17T22:43:00Z")

</div>

I have similar question to this: What is the best way to update progress bar from a scripted module? I am thinking of the progress bar which sometimes appears when running a CLI module or something similar. ITK Ultrasou…

---

## [Installing ITK Python package in Slicer 5.1 and above](https://discourse.slicer.org/t/installing-itk-python-package-in-slicer-5-1-and-above/25636)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 5:59pm UTC](https://discourse.slicer.org/t/installing-itk-python-package-in-slicer-5-1-and-above/25636 "2022-10-11T17:59:33Z")

</div>

Following the integration of Slicer pull request #6564 adding support for ITK custom namespace, it is now possible to install ITK python package from PyPI and use associated filter. The use of functionalities relying on…

---

## [An error was encountered while compiling from scratch](https://discourse.slicer.org/t/an-error-was-encountered-while-compiling-from-scratch/22192)

<div class="topic-metadata">

**Author:** [@Tesla2678](https://discourse.slicer.org/u/Tesla2678)\
**Replies:** 5\
**Last updated:** [March 14, 2022, 9:55pm UTC](https://discourse.slicer.org/t/an-error-was-encountered-while-compiling-from-scratch/22192 "2022-03-14T21:55:38Z")

</div>

Operating system: Win10 Slicer version: Compiling from GIT\_REPOSITORY git://github.com/Slicer/Slicer GIT\_TAG v4.11.20200930 Expected behavior: Actual behavior: Error Log: Severity Code Description Pro…

---

## [Trouble building ITK python wrapping](https://discourse.slicer.org/t/trouble-building-itk-python-wrapping/21729)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 8\
**Last updated:** [February 3, 2022, 11:44pm UTC](https://discourse.slicer.org/t/trouble-building-itk-python-wrapping/21729 "2022-02-03T23:44:41Z")

</div>

I want to include ITK python wrapping in my Slicer build, but building fails when I turn on Slicer\_BUILD\_ITKPython, with the following error in the make output ... -- ITKPyUtils: Creating itkPyCommand submodule. -- ITKP…

---

## [Gradient Anisotropic Diffusion itk filter in my .py extension](https://discourse.slicer.org/t/gradient-anisotropic-diffusion-itk-filter-in-my-py-extension/20805)

<div class="topic-metadata">

**Author:** [@aaregar](https://discourse.slicer.org/u/aaregar)\
**Replies:** 3\
**Last updated:** [November 29, 2021, 4:07pm UTC](https://discourse.slicer.org/t/gradient-anisotropic-diffusion-itk-filter-in-my-py-extension/20805 "2021-11-29T16:07:25Z")

</div>

Operating system: w10 Slicer version: 4.11 Hi!! I’m trying to include in my in-house Extension the possibility to generate a filtered version of a selected volume using Gradient Anisotropic Diffusion itk filter. The p…

---

## [‘SetSpacing’: is not a member of ‘itk::VesselTubeSpatialObject\<2\>’](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.slicer.org/u/Mahesh_Timmanagoudar)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 11:59am UTC](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020 "2021-08-02T11:59:01Z")

</div>

Error C2039 ‘SetSpacing’: is not a member of ‘itk::VesselTubeSpatialObject\<2\>’ \[D:\\W4-rel\\S-bld\\Slicer-build\\E\\TubeTK\\Applications\\SegmentTubeUsingMinimalPath\\SegmentTubeUsingMinimalPathLib.vcxproj\] Slicer D:\\W4\\S-rel\\S-…

---

## [Update ITK to f6c37d?](https://discourse.slicer.org/t/update-itk-to-f6c37d/10396)

<div class="topic-metadata">

**Author:** [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 6:13pm UTC](https://discourse.slicer.org/t/update-itk-to-f6c37d/10396 "2020-04-02T18:13:14Z")

</div>

@jcfr @lassoan @pieper (and anyone else you think might want to comment) SlicerOpenCV is broken with the update to ITKv5, and requires the fix Could this be either cherry picked or the branch advanced to this commit? …

---

## [Error when building the latest build (2020-03-25)](https://discourse.slicer.org/t/error-when-building-the-latest-build-2020-03-25/10858)

<div class="topic-metadata">

**Author:** [@Fangwen\_Zhai](https://discourse.slicer.org/u/Fangwen_Zhai)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 8:06am UTC](https://discourse.slicer.org/t/error-when-building-the-latest-build-2020-03-25/10858 "2020-03-27T08:06:23Z")

</div>

I just tried building the latest code and got several errors. My building environment includes VS 2017, windows 10. After some searching, I found these errors are all related to itkv5 compatibility as listed below. Er…

---

## [vtkITKImageThresholdCalculator failure - due to ITK update?](https://discourse.slicer.org/t/vtkitkimagethresholdcalculator-failure-due-to-itk-update/8251)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 5\
**Last updated:** [September 4, 2019, 2:16pm UTC](https://discourse.slicer.org/t/vtkitkimagethresholdcalculator-failure-due-to-itk-update/8251 "2019-09-04T14:16:06Z")

</div>

vtkITKImageThresholdCalculator fails with errors like this recently (and crashes or just provides invalid result): Failed to compute threshold value using method Shanbhag. Details: itk::ExceptionObject (00000076F88F6C9…

---

## [How to get pixel value and coordinate from nrrd file](https://discourse.slicer.org/t/how-to-get-pixel-value-and-coordinate-from-nrrd-file/7030)

<div class="topic-metadata">

**Author:** [@kscript](https://discourse.slicer.org/u/kscript)\
**Replies:** 5\
**Last updated:** [June 5, 2019, 2:01pm UTC](https://discourse.slicer.org/t/how-to-get-pixel-value-and-coordinate-from-nrrd-file/7030 "2019-06-05T14:01:57Z")

</div>

So I make nrrd file. In this file has Annotation Data using 3D Slicer. I want to get pixel coordinate and pixel value from this file. I modified the code with reference to the source of this link, but I did not get any…

---

## [ITK5 released, are we ready to start using it?](https://discourse.slicer.org/t/itk5-released-are-we-ready-to-start-using-it/6985)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.slicer.org/u/pieper)\
**Replies:** 2\
**Last updated:** [May 31, 2019, 8:34pm UTC](https://discourse.slicer.org/t/itk5-released-are-we-ready-to-start-using-it/6985 "2019-05-31T20:34:47Z")

</div>

Now that ITK5 is officially out, are there any roadblocks to updating slicer? (and congrats to the ITK team! :trumpet: )

---

## [Loadable module ITK filters I/O](https://discourse.slicer.org/t/loadable-module-itk-filters-i-o/5589)

<div class="topic-metadata">

**Author:** [@Amn3s14](https://discourse.slicer.org/u/Amn3s14)\
**Replies:** 1\
**Last updated:** [February 2, 2019, 2:58am UTC](https://discourse.slicer.org/t/loadable-module-itk-filters-i-o/5589 "2019-02-02T02:58:51Z")

</div>

Hello, I am new to Slicer and ITK. I am trying to perform one of the SimpleFilters in my c++ module, but am having trouble getting the right input/output for ITK. const int dim = 3; typedef unsigned char PType; typedef…

---

## [Itk or SimpleItk for PyRadiomics (in python, of course)](https://discourse.slicer.org/t/itk-or-simpleitk-for-pyradiomics-in-python-of-course/5061)

<div class="topic-metadata">

**Author:** [@MachadoL](https://discourse.slicer.org/u/MachadoL)\
**Replies:** 3\
**Last updated:** [December 13, 2018, 5:49pm UTC](https://discourse.slicer.org/t/itk-or-simpleitk-for-pyradiomics-in-python-of-course/5061 "2018-12-13T17:49:30Z")

</div>

Operating system: Linux Mint 18 Slicer version: Expected behavior: Import and read images through Itk Pack Actual behavior: It gives some errors Hey guys… what up? I am working with PyRadiomics in some python script…
