# Engineering

**URL:** https://discourse.itk.org/c/engineering/6.md?page=2

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

**Page:** 3

---

## [SpatialObjectToImageFilter is missing SetReferenceImage method in ITK Python](https://discourse.itk.org/t/spatialobjecttoimagefilter-is-missing-setreferenceimage-method-in-itk-python/7334)

<div class="topic-metadata">

**Author:** [@constantine](https://discourse.itk.org/u/constantine)\
**Replies:** 5\
**Last updated:** [December 10, 2024, 2:01pm UTC](https://discourse.itk.org/t/spatialobjecttoimagefilter-is-missing-setreferenceimage-method-in-itk-python/7334 "2024-12-10T14:01:56Z")

</div>

Hello Everyone. While tinkering with ITK in Python, I’ve come across this curious circumstance: AttributeError: 'itkSpatialObjectToImageFilterSO2IUC2' object has no attribute 'SetReferenceImage'. Did you mean: 'GetRefe…

---

## [CMake error from itktiff when building RTK](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327)

<div class="topic-metadata">

**Author:** [@arobert01](https://discourse.itk.org/u/arobert01)\
**Replies:** 2\
**Last updated:** [November 26, 2024, 12:40pm UTC](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327 "2024-11-26T12:40:57Z")

</div>

Hello, I’m used to compile RTK independently from ITK. Today, I updated both RTK and ITK with the master branch (this commit for ITK and this one for RTK). The compilation of ITK went fine but when I tried to compile RT…

---

## [Strange behavior of itk::RegularExpressionSeriesFileNames](https://discourse.itk.org/t/strange-behavior-of-itk-regularexpressionseriesfilenames/7319)

<div class="topic-metadata">

**Author:** [@acoussat](https://discourse.itk.org/u/acoussat)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 4:26pm UTC](https://discourse.itk.org/t/strange-behavior-of-itk-regularexpressionseriesfilenames/7319 "2024-11-19T16:26:44Z")

</div>

Hello, I came across a strange behavior of itk::RegularExpressionSeriesFileNames, and either I miss something, or there is a bug somewhere. I have the following directory structure: projections ├── projections0000.mhd…

---

## [How to assert that images are equal, in Python unit test?](https://discourse.itk.org/t/how-to-assert-that-images-are-equal-in-python-unit-test/7302)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 21\
**Last updated:** [November 12, 2024, 2:04pm UTC](https://discourse.itk.org/t/how-to-assert-that-images-are-equal-in-python-unit-test/7302 "2024-11-12T14:04:09Z")

</div>

How would you check that the “actual” output image of a filter is equal to the “excepted” image, in a Python unit test? Is there a helper function, like assert\_equal\_image(actual\_image, expected\_image)? I tried the fol…

---

## [Limit Threads for the whole host for the execution of multiple ITK processes](https://discourse.itk.org/t/limit-threads-for-the-whole-host-for-the-execution-of-multiple-itk-processes/7276)

<div class="topic-metadata">

**Author:** [@reox](https://discourse.itk.org/u/reox)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 2:57pm UTC](https://discourse.itk.org/t/limit-threads-for-the-whole-host-for-the-execution-of-multiple-itk-processes/7276 "2024-10-22T14:57:42Z")

</div>

I have a tool written in Python and SimpleITK and start multiple instances of it at the same time. I have limited the number of threads per process via the environment variable ITK\_GLOBAL\_DEFAULT\_NUMBER\_OF\_THREADS . How…

---

## [Index type ("ElementIdentifier") of \`itk::VectorContainer\` is now \`itk::SizeValueType\` by default, please check!](https://discourse.itk.org/t/index-type-elementidentifier-of-itk-vectorcontainer-is-now-itk-sizevaluetype-by-default-please-check/7263)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 1\
**Last updated:** [October 17, 2024, 2:14pm UTC](https://discourse.itk.org/t/index-type-elementidentifier-of-itk-vectorcontainer-is-now-itk-sizevaluetype-by-default-please-check/7263 "2024-10-17T14:14:52Z")

</div>

From commit ENH: Make index type of VectorContainer SizeValueType by default · InsightSoftwareConsortium/ITK@4b5e5be · GitHub (merged to the “master” branch for ITK 6.0), it is no longer necessary to explicitly specify t…

---

## [ITK install halts](https://discourse.itk.org/t/itk-install-halts/7259)

<div class="topic-metadata">

**Author:** [@Vicente\_Ferrer](https://discourse.itk.org/u/Vicente_Ferrer)\
**Replies:** 2\
**Last updated:** [October 15, 2024, 1:41pm UTC](https://discourse.itk.org/t/itk-install-halts/7259 "2024-10-15T13:41:26Z")

</div>

Hello, While installing ITKR with devtools I have this error: Building CXX object Modules/Filtering/MathematicalMorphology/src/CMakeFiles/ITKMathematicalMorphology.dir/itkMathematicalMorphologyEnums.cxx.o In file inclu…

---

## [Registry edit error during CMake config](https://discourse.itk.org/t/registry-edit-error-during-cmake-config/7206)

<div class="topic-metadata">

**Author:** [@gregsharp](https://discourse.itk.org/u/gregsharp)\
**Replies:** 7\
**Last updated:** [September 16, 2024, 11:41pm UTC](https://discourse.itk.org/t/registry-edit-error-during-cmake-config/7206 "2024-09-16T23:41:10Z")

</div>

Hi all, First, let me thank you for all the great software and support over the years! Latest CMake and ITK. I am trying to configure and build on a Corporate Windows 10 computer that has (IMO) fairly mild lockdown of …

---

## [Save a custom attribute in header of Nifti](https://discourse.itk.org/t/save-a-custom-attribute-in-header-of-nifti/7178)

<div class="topic-metadata">

**Author:** [@Karol-G](https://discourse.itk.org/u/Karol-G)\
**Replies:** 1\
**Last updated:** [August 20, 2024, 1:33pm UTC](https://discourse.itk.org/t/save-a-custom-attribute-in-header-of-nifti/7178 "2024-08-20T13:33:34Z")

</div>

Hey, I want to indicate to my python code if a Nifti image is an image or a segmentation. To accomplish that I want to store a single attribute in the Nifti header in one of the more flexible Nifti header fields such a…

---

## [Elastix idiosyncracy?](https://discourse.itk.org/t/elastix-idiosyncracy/7049)

<div class="topic-metadata">

**Author:** [@Soren\_Christensen](https://discourse.itk.org/u/Soren_Christensen)\
**Replies:** 19\
**Last updated:** [August 15, 2024, 9:45am UTC](https://discourse.itk.org/t/elastix-idiosyncracy/7049 "2024-08-15T09:45:10Z")

</div>

Hi, The flat array “direction” property of sitk images are specified as a row-order concatenation of the 3x3 direction matrix. For Elastix/SimpleElastix, the Direction property specified in Transformparamterer maps is …

---

## [Next js component adaptation of VTP GeometryView](https://discourse.itk.org/t/next-js-component-adaptation-of-vtp-geometryview/7150)

<div class="topic-metadata">

**Author:** [@babayka](https://discourse.itk.org/u/babayka)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 10:32pm UTC](https://discourse.itk.org/t/next-js-component-adaptation-of-vtp-geometryview/7150 "2024-08-06T22:32:17Z")

</div>

Dear All, I wanted to make a Next js component that gives the page the same as in the vtk.js example. The problem I’m encountering is the way of adopting it for the next js way of writing, is there an example that uses …

---

## [Images in physical space in Python](https://discourse.itk.org/t/images-in-physical-space-in-python/2124)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.itk.org/u/lassoan)\
**Replies:** 35\
**Last updated:** [July 23, 2024, 8:48pm UTC](https://discourse.itk.org/t/images-in-physical-space-in-python/2124 "2024-07-23T20:48:38Z")

</div>

ITK developers and long-time users understand importance of performing image processing operations in physical space, but many Python users are not aware of this and might have the temptation to work in voxel space inste…

---

## [ShapedNeighborhoodIterator\<\>::ConstIterator': is not a legal base class?](https://discourse.itk.org/t/shapedneighborhooditerator-constiterator-is-not-a-legal-base-class/6665)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 4\
**Last updated:** [June 18, 2024, 5:12am UTC](https://discourse.itk.org/t/shapedneighborhooditerator-constiterator-is-not-a-legal-base-class/6665 "2024-06-18T05:12:46Z")

</div>

I am trying to build a Slicer CLI with C++20 settings, and I am running into: M:\\a\\Sd\\ITK\\Modules\\Core\\Common\\include\\itkShapedNeighborhoodIterator.h(182,28): error C2516: 'slicer\_itk::ShapedNeighborhoodIterator\<TImage,…

---

## [include could not find requested file: ITKModuleExternal](https://discourse.itk.org/t/include-could-not-find-requested-file-itkmoduleexternal/6670)

<div class="topic-metadata">

**Author:** [@Kiran\_shaji](https://discourse.itk.org/u/Kiran_shaji)\
**Replies:** 6\
**Last updated:** [June 7, 2024, 1:38pm UTC](https://discourse.itk.org/t/include-could-not-find-requested-file-itkmoduleexternal/6670 "2024-06-07T13:38:37Z")

</div>

Hi, I’m working on ITK and I’m trying to built a remote module ‘ITKmontage’. While I’m trying to CMake the ITKmontage it’s showing error. Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045. CMake …

---

## [Reading Arbitrary Transforms, Compute Something if Linear](https://discourse.itk.org/t/reading-arbitrary-transforms-compute-something-if-linear/6553)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 10\
**Last updated:** [May 30, 2024, 5:24pm UTC](https://discourse.itk.org/t/reading-arbitrary-transforms-compute-something-if-linear/6553 "2024-05-30T17:24:07Z")

</div>

I’m working on trying to extend the antsTransformInfo tool to print the Determinant of a transform if its Linear as part of its summary information. The existing implementation is very very simple, a copy of an ITK exam…

---

## [Using SplitComponentsImageFilter to split by dimension](https://discourse.itk.org/t/using-splitcomponentsimagefilter-to-split-by-dimension/6603)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.itk.org/u/cpinter)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 9:17am UTC](https://discourse.itk.org/t/using-splitcomponentsimagefilter-to-split-by-dimension/6603 "2024-05-27T09:17:04Z")

</div>

Hi all, I’m trying to use the SplitComponentsImageFilter class to split a 5D image (component + 3D spatial + time) by time, and I’m getting a compilation error when I try to build a very simple test. For context, this …

---

## [My roten recipe to build ITK 5.4rc04 with ITKElastix and other modules with Python in Linux](https://discourse.itk.org/t/my-roten-recipe-to-build-itk-5-4rc04-with-itkelastix-and-other-modules-with-python-in-linux/6663)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 0\
**Last updated:** [May 25, 2024, 2:20pm UTC](https://discourse.itk.org/t/my-roten-recipe-to-build-itk-5-4rc04-with-itkelastix-and-other-modules-with-python-in-linux/6663 "2024-05-25T14:20:58Z")

</div>

Hi. I just want to share how I was able to build ITK with some modules, including ITKElastix with Python 3.12. The attachment has the instructions, versions of source code, versions of running software and compilation lo…

---

## [Howto: Submit patches for 5.4.1](https://discourse.itk.org/t/howto-submit-patches-for-5-4-1/6651)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 0\
**Last updated:** [May 21, 2024, 10:37am UTC](https://discourse.itk.org/t/howto-submit-patches-for-5-4-1/6651 "2024-05-21T10:37:42Z")

</div>

ITK v5.4.0 has been tagged! :label: We have a new release-5.4 branch. :rocket: Patches intended for future 5.4 patch releases (5.4.1, etc) should be branched from here and a pull-request created against this branch: B…

---

## [ITKElastix: SetNumberOfThreads() segfaults with bspline parameter map](https://discourse.itk.org/t/itkelastix-setnumberofthreads-segfaults-with-bspline-parameter-map/6650)

<div class="topic-metadata">

**Author:** [@Pieter-VB](https://discourse.itk.org/u/Pieter-VB)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 9:06am UTC](https://discourse.itk.org/t/itkelastix-setnumberofthreads-segfaults-with-bspline-parameter-map/6650 "2024-05-21T09:06:08Z")

</div>

When increasing the number of threads (\> 1) of the itk.ElastixRegistrationMethod, the registration method segfaults when using the bspline default parameter map. This already fails with the given example: bspline exampl…

---

## [Improving Observer Design Implementation for itk::Object.](https://discourse.itk.org/t/improving-observer-design-implementation-for-itk-object/6645)

<div class="topic-metadata">

**Author:** [@Piyush\_Aggarwal](https://discourse.itk.org/u/Piyush_Aggarwal)\
**Replies:** 2\
**Last updated:** [May 20, 2024, 4:02pm UTC](https://discourse.itk.org/t/improving-observer-design-implementation-for-itk-object/6645 "2024-05-20T16:02:34Z")

</div>

Hello, everyone. I work with ITK at my day job. Upon inspection into the header of itkObject, I noticed there is a const API available for AddObserver but not for RemoveObserver. Since both APIs internally just call the …

---

## [libITKCommon-5.3.so.1: cannot open shared object file: No such file or directory](https://discourse.itk.org/t/libitkcommon-5-3-so-1-cannot-open-shared-object-file-no-such-file-or-directory/6637)

<div class="topic-metadata">

**Author:** [@Divital](https://discourse.itk.org/u/Divital)\
**Replies:** 4\
**Last updated:** [May 18, 2024, 4:45pm UTC](https://discourse.itk.org/t/libitkcommon-5-3-so-1-cannot-open-shared-object-file-no-such-file-or-directory/6637 "2024-05-18T16:45:16Z")

</div>

Hi, I have been trying to build the SimpleITK-2.2.0.tar.gz with the help of gcc-8.1 on a julia language based sandboxed environment (alpine linux, using BinaryBuilder.jl), i use the following the build\_tarball.jl script …

---

## [How to build ITKElastix with ITK 5.3.0 with Python bindings in Linux?](https://discourse.itk.org/t/how-to-build-itkelastix-with-itk-5-3-0-with-python-bindings-in-linux/6625)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 8\
**Last updated:** [May 11, 2024, 12:32pm UTC](https://discourse.itk.org/t/how-to-build-itkelastix-with-itk-5-3-0-with-python-bindings-in-linux/6625 "2024-05-11T12:32:18Z")

</div>

Continuing the discussion from Update remote module in ITK: Continuing the discussion from how to build ITK 5.3.0 with Python bindings in Linux?: Hello. I am trying to build ITKElastix offline from source with ITK 5.3…

---

## [Writing color DICOM images with GDCMImageIO](https://discourse.itk.org/t/writing-color-dicom-images-with-gdcmimageio/2202)

<div class="topic-metadata">

**Author:** [@zivy](https://discourse.itk.org/u/zivy)\
**Replies:** 8\
**Last updated:** [April 24, 2024, 11:31pm UTC](https://discourse.itk.org/t/writing-color-dicom-images-with-gdcmimageio/2202 "2024-04-24T23:31:25Z")

</div>

I encountered some challenges writing color DICOM images to file using GDCMImageIO. The current implementation of the GDCMImageIO assumes three channel images have a photometric interpretation value of RGB, see here. I …

---

## [Install package itk 5](https://discourse.itk.org/t/install-package-itk-5/6591)

<div class="topic-metadata">

**Author:** [@Michael\_M](https://discourse.itk.org/u/Michael_M)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 8:06pm UTC](https://discourse.itk.org/t/install-package-itk-5/6591 "2024-04-24T20:06:05Z")

</div>

Hello, I can install itk 5 via the longer process of cloning the repository and building it from scratch using cmake. However, i wanted to shorten and simplify the process by just downloading the package as described h…

---

## [transfer syntax conversion](https://discourse.itk.org/t/transfer-syntax-conversion/6593)

<div class="topic-metadata">

**Author:** [@George\_Z](https://discourse.itk.org/u/George_Z)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 5:22pm UTC](https://discourse.itk.org/t/transfer-syntax-conversion/6593 "2024-04-24T17:22:30Z")

</div>

Hello, I was wondering if ITK support conversion of jpeg2000 to Little Endian? I humbly wish to consider The below transfer syntaxes: JPEG Baseline (1.2.840.10008.1.2.4.50) JPEG Extended (1.2.840.10008.1.2.4.51) JPE…

---

## [Challenges with itk.simple.SimpleITKPINVOKE+SWIGExceptionHelper in Unity il2cpp Final Build](https://discourse.itk.org/t/challenges-with-itk-simple-simpleitkpinvoke-swigexceptionhelper-in-unity-il2cpp-final-build/6566)

<div class="topic-metadata">

**Author:** [@Anton\_Smirnov](https://discourse.itk.org/u/Anton_Smirnov)\
**Replies:** 1\
**Last updated:** [April 15, 2024, 1:38pm UTC](https://discourse.itk.org/t/challenges-with-itk-simple-simpleitkpinvoke-swigexceptionhelper-in-unity-il2cpp-final-build/6566 "2024-04-15T13:38:39Z")

</div>

Good day, esteemed forum members! I am developing an application on Unity il2cpp and am using the SimpleITK library, compiled through SuperBuild for C#. Everything works perfectly in the Unity editor, but during the fin…

---

## [SpatialObject.IsInsideInWorldSpace(point) much faster now!](https://discourse.itk.org/t/spatialobject-isinsideinworldspace-point-much-faster-now/6425)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 3\
**Last updated:** [April 9, 2024, 8:27am UTC](https://discourse.itk.org/t/spatialobject-isinsideinworldspace-point-much-faster-now/6425 "2024-04-09T08:27:33Z")

</div>

:tada: For your information, we have just achieved a significant performance improvement! With the latest ITK master branch revision (commit PERF: Make \`m\_ObjectToWorldTransformInverse-\>TransformPoint\` non-virtual · Ins…

---

## [how to build ITK 5.3.0 with Python bindings in Linux?](https://discourse.itk.org/t/how-to-build-itk-5-3-0-with-python-bindings-in-linux/6544)

<div class="topic-metadata">

**Author:** [@edgar](https://discourse.itk.org/u/edgar)\
**Replies:** 9\
**Last updated:** [April 8, 2024, 5:51pm UTC](https://discourse.itk.org/t/how-to-build-itk-5-3-0-with-python-bindings-in-linux/6544 "2024-04-08T17:51:18Z")

</div>

Hello. I would like to know if someone can help me to build ITK 5.3.0 with Python bindings in Linux. The idea is to have a reproducible build, which implies that downloading the binary packages is not an option. Thank yo…

---

## [Description: ITK ERROR: Object factory failed to instantiate class itk::RealToHalfHermitianForwardFFTImageFilter\<class itk::Image\<double,3\>,class itk::Image\<class std::complex\<double\>,3\> \>](https://discourse.itk.org/t/description-itk-error-object-factory-failed-to-instantiate-class-itk-realtohalfhermitianforwardfftimagefilter-class-itk-image-double-3-class-itk-image-class-std-complex-double-3/5865)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 6:06am UTC](https://discourse.itk.org/t/description-itk-error-object-factory-failed-to-instantiate-class-itk-realtohalfhermitianforwardfftimagefilter-class-itk-image-double-3-class-itk-image-class-std-complex-double-3/5865 "2024-03-18T06:06:57Z")

</div>

The version attempted to use the RTK library, and there was no problem running the test program. I copied the example in the example and encountered this error.

---

## [CUDA version Problem](https://discourse.itk.org/t/cuda-version-problem/6498)

<div class="topic-metadata">

**Author:** [@skb](https://discourse.itk.org/u/skb)\
**Replies:** 28\
**Last updated:** [March 18, 2024, 12:37am UTC](https://discourse.itk.org/t/cuda-version-problem/6498 "2024-03-18T00:37:38Z")

</div>

i wonder if there are any relationship between the ＣＵＤＡ version of compiling RTK linkｅｄ and the CUDA version of RTK applying environment，because i met a strange problem that a same procedure runs faster on m…

[Previous page](https://discourse.itk.org/c/engineering/6.md?page=1)

[Next page](https://discourse.itk.org/c/engineering/6.md?page=3)
