# \#itk-python

**URL:** https://discourse.slicer.org/tag/itk-python/439.md

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

---

## [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…

---

## [Suggestion for Module Extension Development with SimpleITK and ITK-elastix](https://discourse.slicer.org/t/suggestion-for-module-extension-development-with-simpleitk-and-itk-elastix/31300)

<div class="topic-metadata">

**Author:** [@calici](https://discourse.slicer.org/u/calici)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 7:53pm UTC](https://discourse.slicer.org/t/suggestion-for-module-extension-development-with-simpleitk-and-itk-elastix/31300 "2023-08-22T19:53:57Z")

</div>

Hi, I would like to develop a module extension in 3D slicer for projecting planned needle trajectories to current image by registering pre-operative CT to intra-operative CT. I have already object-oriented python scrip…

---

## [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…

---

## [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…

---

## [Addressing issue with "pip install itk"](https://discourse.slicer.org/t/addressing-issue-with-pip-install-itk/21763)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 4:54pm UTC](https://discourse.slicer.org/t/addressing-issue-with-pip-install-itk/21763 "2022-02-03T16:54:40Z")

</div>

I was also playing with pip installing itk, but this doesn’t seem to work at the moment. @jcfr was looking into this. It may have to do with the pip-installed ITK and the compiled ITK libraries working with the same sha…

---

## [Build error when building ITKPython](https://discourse.slicer.org/t/build-error-when-building-itkpython/15302)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 6\
**Last updated:** [September 29, 2021, 7:25pm UTC](https://discourse.slicer.org/t/build-error-when-building-itkpython/15302 "2021-09-29T19:25:21Z")

</div>

With Slicer\_BUILD\_ITKPython and Slicer\_INSTALL\_ITKPython turned on and using CMake 3.18.4 and latest Slicer master I get some errors during the wrapping process. Has anyone successfully built ITKPython recently? I was …

---

## [How to install ITK python wheels with Slicer 4.10 and Slicer 4.11?](https://discourse.slicer.org/t/how-to-install-itk-python-wheels-with-slicer-4-10-and-slicer-4-11/12537)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Replies:** 7\
**Last updated:** [July 16, 2020, 3:08am UTC](https://discourse.slicer.org/t/how-to-install-itk-python-wheels-with-slicer-4-10-and-slicer-4-11/12537 "2020-07-16T03:08:05Z")

</div>

Hello, I have two questions related to itk installation: I want to install itk at 4.10 Slicer version but gives me error: Command “python setup.py egg\_info” failed with error code 1 in c:\\users\\siael\\appdata\\local\\te…
