# Engineering

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

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

**Page:** 8

---

## [Compilation error after ITK-5.3 update](https://discourse.itk.org/t/compilation-error-after-itk-5-3-update/4832)

<div class="topic-metadata">

**Author:** [@Mik](https://discourse.itk.org/u/Mik)\
**Replies:** 3\
**Last updated:** [February 25, 2022, 7:41pm UTC](https://discourse.itk.org/t/compilation-error-after-itk-5-3-update/4832 "2022-02-25T19:41:25Z")

</div>

Dear developers, I have a problem with compilation of Plastimatch software. This program is a part of SlicerRT extension of 3D Slicer. Plastimatch build is failed after ITK-5.3 upgrade on Linux. CDash shows that Window…

---

## [Maintenance today](https://discourse.itk.org/t/maintenance-today/4738)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 7\
**Last updated:** [February 24, 2022, 1:27pm UTC](https://discourse.itk.org/t/maintenance-today/4738 "2022-02-24T13:27:05Z")

</div>

We will move itk.org off of the old 32-bit Debian 10 server (public.kitware.com) to our updated 64-bit Ubuntu 20.04 server (web.kitware.com) today at 2pm (approximately 3.5h from now). The upgrade is likely to take up to…

---

## [Remove JAVA, RUBY, TCL, EXPLICIT wrapping targets](https://discourse.itk.org/t/remove-java-ruby-tcl-explicit-wrapping-targets/4818)

<div class="topic-metadata">

**Author:** [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 3:06pm UTC](https://discourse.itk.org/t/remove-java-ruby-tcl-explicit-wrapping-targets/4818 "2022-02-21T15:06:40Z")

</div>

I would like to propose removing the defunct build capabilities of JAVA, RUBY, TCL, & EXPLICIT options. These build configurations are not supported or working for a long time. The removal of these packages allows to g…

---

## [Generating python template parameter from an unknown image](https://discourse.itk.org/t/generating-python-template-parameter-from-an-unknown-image/2267)

<div class="topic-metadata">

**Author:** [@darrent1974](https://discourse.itk.org/u/darrent1974)\
**Replies:** 6\
**Last updated:** [February 16, 2022, 3:42pm UTC](https://discourse.itk.org/t/generating-python-template-parameter-from-an-unknown-image/2267 "2022-02-16T15:42:50Z")

</div>

Hi, I’m looking for a simple solution to the following: I’d like to generate an image type template parameter to use in order to construct an ImageSeriesReader class (python) by interrogating one of the files in the se…

---

## [Proposal: Remove VtkGlue from ITK, and add ITKVtkGlue as a remote module](https://discourse.itk.org/t/proposal-remove-vtkglue-from-itk-and-add-itkvtkglue-as-a-remote-module/4791)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.itk.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 9:51pm UTC](https://discourse.itk.org/t/proposal-remove-vtkglue-from-itk-and-add-itkvtkglue-as-a-remote-module/4791 "2022-02-14T21:51:22Z")

</div>

To streamline maintenance, I suggest to (1) remove the directory Modules/Bridge/VtkGlue from ITK source tree and (2) add a remote module referencing https://github.com/InsightSoftwareConsortium/ITKVtkGlue

---

## [Which initial is preferred for a non-type template parameter, N or V (\`NDimension\` or \`VDimension\`)?](https://discourse.itk.org/t/which-initial-is-preferred-for-a-non-type-template-parameter-n-or-v-ndimension-or-vdimension/4788)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 7\
**Last updated:** [February 8, 2022, 10:10am UTC](https://discourse.itk.org/t/which-initial-is-preferred-for-a-non-type-template-parameter-n-or-v-ndimension-or-vdimension/4788 "2022-02-08T10:10:46Z")

</div>

According to our KWStyle file, a template parameter name must begin with either T, N, or V, if I understand correctly: T is for type parameters, obviously. But which prefix is preferred for non-type parameters? N (for…

---

## [How to pass a compile-time constant number to a generic lambda](https://discourse.itk.org/t/how-to-pass-a-compile-time-constant-number-to-a-generic-lambda/4763)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 9\
**Last updated:** [February 6, 2022, 4:10pm UTC](https://discourse.itk.org/t/how-to-pass-a-compile-time-constant-number-to-a-generic-lambda/4763 "2022-02-06T16:10:41Z")

</div>

An interest use case for generic lambda’s: they allow passing a compile-time constant number, by using a std::integral\_constant as function argument. For example: auto genericLambda = \[\](const auto integralConstant) { …

---

## [Install hdf5 component naming](https://discourse.itk.org/t/install-hdf5-component-naming/4762)

<div class="topic-metadata">

**Author:** [@cg2](https://discourse.itk.org/u/cg2)\
**Replies:** 1\
**Last updated:** [January 28, 2022, 1:11pm UTC](https://discourse.itk.org/t/install-hdf5-component-naming/4762 "2022-01-28T13:11:32Z")

</div>

Hi, When packaging Plus toolkit on my side, I realized a possible issue with the component naming of hdf5 installed target. When packaging the project, the package missed the hdf5 dlls. Here is the CPack script relev…

---

## [itk-wasm and SimpleITK](https://discourse.itk.org/t/itk-wasm-and-simpleitk/4742)

<div class="topic-metadata">

**Author:** [@haehn](https://discourse.itk.org/u/haehn)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 2:14am UTC](https://discourse.itk.org/t/itk-wasm-and-simpleitk/4742 "2022-01-21T02:14:26Z")

</div>

Hi Everyone, Is it possible to use SimpleITK in JavaScript? Did anyone try the SWIG wrapping to JS? Or is itk-wasm the current way to use ITK from JS? Thanks so much! Daniel

---

## [Google Test Issues](https://discourse.itk.org/t/google-test-issues/4706)

<div class="topic-metadata">

**Author:** [@melrobin](https://discourse.itk.org/u/melrobin)\
**Replies:** 12\
**Last updated:** [December 30, 2021, 2:12am UTC](https://discourse.itk.org/t/google-test-issues/4706 "2021-12-30T02:12:11Z")

</div>

I am having a good deal of trouble building ITK from development sources on Fedora 34. The problem occurs during Google Test detection. Here are the beginning of the errors: CMake Error at CMake/ITKModuleTest.cmake:25…

---

## [Cannot find \`itkImageToVTKImageFilter.h\` header via vcpkg-built itk](https://discourse.itk.org/t/cannot-find-itkimagetovtkimagefilter-h-header-via-vcpkg-built-itk/4702)

<div class="topic-metadata">

**Author:** [@LesleyLai](https://discourse.itk.org/u/LesleyLai)\
**Replies:** 1\
**Last updated:** [December 28, 2021, 4:26am UTC](https://discourse.itk.org/t/cannot-find-itkimagetovtkimagefilter-h-header-via-vcpkg-built-itk/4702 "2021-12-28T04:26:03Z")

</div>

Hi, I am trying to introduce ITK to my project via vcpkg, and I met the following error when I try to replicate this example fatal error: itkImageToVTKImageFilter.h: No such file or directory I don’t seem to have probl…

---

## [Built ITK 5.2.1 with Module SkullStrip - Multiple defined symbols error](https://discourse.itk.org/t/built-itk-5-2-1-with-module-skullstrip-multiple-defined-symbols-error/4690)

<div class="topic-metadata">

**Author:** [@Tom89](https://discourse.itk.org/u/Tom89)\
**Replies:** 1\
**Last updated:** [December 20, 2021, 3:16pm UTC](https://discourse.itk.org/t/built-itk-5-2-1-with-module-skullstrip-multiple-defined-symbols-error/4690 "2021-12-20T15:16:23Z")

</div>

Hi, I built ITK 5.2.1 with the SkullStrip module enabled. When I try to use the itkStripTsImageFilter class, I get an “one or more multiply defined symbols found” error. |Error|LNK1169|one or more multiply defined symb…

---

## [Compilation issue including ITK with brew on MacOS](https://discourse.itk.org/t/compilation-issue-including-itk-with-brew-on-macos/4681)

<div class="topic-metadata">

**Author:** [@Ber](https://discourse.itk.org/u/Ber)\
**Replies:** 4\
**Last updated:** [December 18, 2021, 12:21pm UTC](https://discourse.itk.org/t/compilation-issue-including-itk-with-brew-on-macos/4681 "2021-12-18T12:21:37Z")

</div>

Hi ITK teams, We get an issue once using ITK (5.2.1) through brew and macOs and obtain this type of error related to cmath use: Applications/Xcode\_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/M…

---

## [Linux 32-bit build fails with "inlining failed" error](https://discourse.itk.org/t/linux-32-bit-build-fails-with-inlining-failed-error/4666)

<div class="topic-metadata">

**Author:** [@SteveRobbins](https://discourse.itk.org/u/SteveRobbins)\
**Replies:** 5\
**Last updated:** [December 14, 2021, 4:48am UTC](https://discourse.itk.org/t/linux-32-bit-build-fails-with-inlining-failed-error/4666 "2021-12-14T04:48:39Z")

</div>

I’m building v5.2.1 (but same failure occurs in 5.3rc02) on an up-to-date Debian Linux machine. GCC is version 11.2, CMake is 3.22.1 My machine is actually an AMD64. I can build the 64-bit version without trouble. Bu…

---

## [Linux 32-bit tests failing](https://discourse.itk.org/t/linux-32-bit-tests-failing/4668)

<div class="topic-metadata">

**Author:** [@SteveRobbins](https://discourse.itk.org/u/SteveRobbins)\
**Replies:** 4\
**Last updated:** [December 14, 2021, 3:24am UTC](https://discourse.itk.org/t/linux-32-bit-tests-failing/4668 "2021-12-14T03:24:27Z")

</div>

Hi, I have built ITK 5.2.1 on linux 64-bits and all tests pass. Same build on 32-bits, have many failures. Wondering if it is my set-up. Has anyone sucessfully run the test suite on 32-bits linux? The following test…

---

## [How to convert multi region Segmentation.seg.nrrd into a set of binary label images?](https://discourse.itk.org/t/how-to-convert-multi-region-segmentation-seg-nrrd-into-a-set-of-binary-label-images/4391)

<div class="topic-metadata">

**Author:** [@machadoL](https://discourse.itk.org/u/machadoL)\
**Replies:** 12\
**Last updated:** [December 10, 2021, 9:29am UTC](https://discourse.itk.org/t/how-to-convert-multi-region-segmentation-seg-nrrd-into-a-set-of-binary-label-images/4391 "2021-12-10T09:29:50Z")

</div>

Hello, friends. I would like to ask your help for converting a 2D segmentation.seg.nrrd into a collection of 2D binary label images (one image per segmentation region). I need to perform that by command line in python …

---

## [building as dll and include for c++](https://discourse.itk.org/t/building-as-dll-and-include-for-c/4608)

<div class="topic-metadata">

**Author:** [@avispi](https://discourse.itk.org/u/avispi)\
**Replies:** 2\
**Last updated:** [December 5, 2021, 1:52pm UTC](https://discourse.itk.org/t/building-as-dll-and-include-for-c/4608 "2021-12-05T13:52:42Z")

</div>

Hi. I want to try using ITK for some c++ development. I want to use it as any other external library I use (such as opencv i.e.) Preferably- dll + lib + include but also static libs + include is fine I’m compiling i…

---

## [Extending ITK DemonsRegistration Module to Use Custom Smoothing for Displacement Field](https://discourse.itk.org/t/extending-itk-demonsregistration-module-to-use-custom-smoothing-for-displacement-field/4622)

<div class="topic-metadata">

**Author:** [@bbikdash](https://discourse.itk.org/u/bbikdash)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 10:04pm UTC](https://discourse.itk.org/t/extending-itk-demonsregistration-module-to-use-custom-smoothing-for-displacement-field/4622 "2021-11-29T22:04:58Z")

</div>

Hello, I’ve been working with the various Demons registration filters from SimpleITK as part of my graduate research in image registration. And I’ve been wondering if it possible to extend or change some of functionalit…

---

## [Remove legacy in CI builds?](https://discourse.itk.org/t/remove-legacy-in-ci-builds/4609)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 2:49pm UTC](https://discourse.itk.org/t/remove-legacy-in-ci-builds/4609 "2021-11-24T14:49:48Z")

</div>

It has happened several times that ITK fails to build on one of the dashboard machines which has ITK\_LEGACY\_REMOVE=ON. This could be avoided if we had a CI build without legacy. Probably the best would be to add another …

---

## [ITK Version and Python Version](https://discourse.itk.org/t/itk-version-and-python-version/4589)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 4\
**Last updated:** [November 17, 2021, 6:31pm UTC](https://discourse.itk.org/t/itk-version-and-python-version/4589 "2021-11-17T18:31:36Z")

</div>

We are trying to build a conda version of our application which needs ITK 5.2.1. The build goes off seemingly fine and I get the packages. Inspecting the packages indicates that ITK 5.2.1 is used/required for runtime. Bu…

---

## [Range indexing an ITK image by variables](https://discourse.itk.org/t/range-indexing-an-itk-image-by-variables/4557)

<div class="topic-metadata">

**Author:** [@sedghi](https://discourse.itk.org/u/sedghi)\
**Replies:** 2\
**Last updated:** [November 8, 2021, 3:16am UTC](https://discourse.itk.org/t/range-indexing-an-itk-image-by-variables/4557 "2021-11-08T03:16:01Z")

</div>

I’m trying to slice an sitk image in 3D but having trouble. The following code doesn’t work for some reason Does not work image = sitk.ReadImage('./myImage.nrrd') i\_indices = np.arange(100,164) // or range(100,164) j\_i…

---

## [Proposal to improve ITK factory registration CMake infrastructure](https://discourse.itk.org/t/proposal-to-improve-itk-factory-registration-cmake-infrastructure/4546)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.itk.org/u/jcfr)\
**Replies:** 3\
**Last updated:** [November 5, 2021, 6:46pm UTC](https://discourse.itk.org/t/proposal-to-improve-itk-factory-registration-cmake-infrastructure/4546 "2021-11-05T18:46:26Z")

</div>

Summary The key idea of the proposal linked below was to introduce a CMake function called itk\_configure\_factory allowing to associate relevant properties to CMake targets. Ultimately, for each target, this function wil…

---

## [Image index ordering in Python API](https://discourse.itk.org/t/image-index-ordering-in-python-api/4496)

<div class="topic-metadata">

**Author:** [@dyoll](https://discourse.itk.org/u/dyoll)\
**Replies:** 7\
**Last updated:** [October 27, 2021, 9:03pm UTC](https://discourse.itk.org/t/image-index-ordering-in-python-api/4496 "2021-10-27T21:03:47Z")

</div>

I know this topic has been discussed before, and maybe all decisions have been made and too much legacy exists anyway already… Still, I find it strange to have this numpy array like view of an ITK image with inverted in…

---

## [How to pass output memory to a filter (avoid a copy to external memory)?](https://discourse.itk.org/t/how-to-pass-output-memory-to-a-filter-avoid-a-copy-to-external-memory/4501)

<div class="topic-metadata">

**Author:** [@emmenlau](https://discourse.itk.org/u/emmenlau)\
**Replies:** 10\
**Last updated:** [October 26, 2021, 7:07pm UTC](https://discourse.itk.org/t/how-to-pass-output-memory-to-a-filter-avoid-a-copy-to-external-memory/4501 "2021-10-26T19:07:10Z")

</div>

We use ITK together with a lot of older code that has its own memory management. It was quite easy to wrap our memory containers into an itk::Image using itk::ImportImageFilter. It was also very straightforward to apply …

---

## [Building a TCL package of ITK](https://discourse.itk.org/t/building-a-tcl-package-of-itk/4508)

<div class="topic-metadata">

**Author:** [@cbellon](https://discourse.itk.org/u/cbellon)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 9:21pm UTC](https://discourse.itk.org/t/building-a-tcl-package-of-itk/4508 "2021-10-18T21:21:58Z")

</div>

Is it possible to generate a TCL package of ITK using SimpleITK?

---

## [Extraction and fusion of connected domains](https://discourse.itk.org/t/extraction-and-fusion-of-connected-domains/4484)

<div class="topic-metadata">

**Author:** [@buyierfei](https://discourse.itk.org/u/buyierfei)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 12:57pm UTC](https://discourse.itk.org/t/extraction-and-fusion-of-connected-domains/4484 "2021-10-08T12:57:55Z")

</div>

After analyzing the connected domain of a 3D volume data, several labeled connected domains are obtained. How to obtain the volume data of the corresponding connected domain through the label? What should I do if I want …

---

## [Cannot open include file: ‘itkImageIOFactoryRegisterManager.h’ Error in using Conan-built ITK on windows](https://discourse.itk.org/t/cannot-open-include-file-itkimageiofactoryregistermanager-h-error-in-using-conan-built-itk-on-windows/4477)

<div class="topic-metadata">

**Author:** [@Richard\_Yang](https://discourse.itk.org/u/Richard_Yang)\
**Replies:** 1\
**Last updated:** [October 6, 2021, 1:42pm UTC](https://discourse.itk.org/t/cannot-open-include-file-itkimageiofactoryregistermanager-h-error-in-using-conan-built-itk-on-windows/4477 "2021-10-06T13:42:28Z")

</div>

Hi All, I have encountered an issue as below. |Error|C1083|Cannot open include file: ‘itkImageIOFactoryRegisterManager.h’: No such file or directory|RestDICOM| C:.conan\\5d4232\\1\\include\\ITK-5.1\\itkImageFileWriter.h|246…

---

## [Large / slow tests, forbidding parallel execution?](https://discourse.itk.org/t/large-slow-tests-forbidding-parallel-execution/4332)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 5\
**Last updated:** [September 28, 2021, 6:36pm UTC](https://discourse.itk.org/t/large-slow-tests-forbidding-parallel-execution/4332 "2021-09-28T18:36:20Z")

</div>

Hi all, I recall there is a mechanism to mark ITK tests that shouldn’t run in parallel, but I don’t recall and can’t find what it is. I’m looking to solve some of the timeouts here: https://open.cdash.org/viewTest.php…

---

## [How to color the segmentation results？](https://discourse.itk.org/t/how-to-color-the-segmentation-results/4454)

<div class="topic-metadata">

**Author:** [@buyierfei](https://discourse.itk.org/u/buyierfei)\
**Replies:** 1\
**Last updated:** [September 27, 2021, 1:15pm UTC](https://discourse.itk.org/t/how-to-color-the-segmentation-results/4454 "2021-09-27T13:15:51Z")

</div>

When the segmentation results are obtained, how to mark the different segmented areas with different colors, like the fish in the picture, how this is probably achieved

---

## [Unresolved symbol when using watershed](https://discourse.itk.org/t/unresolved-symbol-when-using-watershed/4444)

<div class="topic-metadata">

**Author:** [@xh\_c](https://discourse.itk.org/u/xh_c)\
**Replies:** 4\
**Last updated:** [September 24, 2021, 4:13pm UTC](https://discourse.itk.org/t/unresolved-symbol-when-using-watershed/4444 "2021-09-24T16:13:46Z")

</div>

Hi, I am using itk::WatershedImageFilter in my project and got Unresolved symbol error: I search the Internet and found add ITKAlgorithms in target\_link\_libraries may help. But I got error say ITKAlgorithms.lib not …

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

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