# Engineering

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

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

**Page:** 6

---

## [Using swig on external standalone libraries that use ITK](https://discourse.itk.org/t/using-swig-on-external-standalone-libraries-that-use-itk/345)

<div class="topic-metadata">

**Author:** [@nslay](https://discourse.itk.org/u/nslay)\
**Replies:** 3\
**Last updated:** [February 13, 2023, 9:20pm UTC](https://discourse.itk.org/t/using-swig-on-external-standalone-libraries-that-use-itk/345 "2023-02-13T21:20:06Z")

</div>

Hello Insight-Users, I’ve studied the WrapITK CMake modules and an old wiki describing how to wrap external modules, but I’ve yet to see anything obvious about wrapping a standalone library that uses ITK. Since ITK is a…

---

## [Hello Wasm World!](https://discourse.itk.org/t/hello-wasm-world/5617)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [January 9, 2023, 4:19am UTC](https://discourse.itk.org/t/hello-wasm-world/5617 "2023-01-09T04:19:12Z")

</div>

In modern computing, the Web Platform has transformed web browsers into a powerful and accessible application interface. Applications built on open web standards work, with no installation, across operating system and ha…

---

## [Create Elegant C++ Spatial Processing Pipelines in WebAssembly](https://discourse.itk.org/t/create-elegant-c-spatial-processing-pipelines-in-webassembly/5692)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 9:08pm UTC](https://discourse.itk.org/t/create-elegant-c-spatial-processing-pipelines-in-webassembly/5692 "2023-02-10T21:08:17Z")

</div>

By: Matt McCormick , Mary Elise Dedicke , Henry Schreiner , WebAssembly’s origins date back to Alon Zakai’s incredible effort to build C++ to JavaScript. In 2015, we demonstrated the power of this technology to make sci…

---

## [Status of ITK Logger classes?](https://discourse.itk.org/t/status-of-itk-logger-classes/5664)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 5\
**Last updated:** [February 1, 2023, 5:27pm UTC](https://discourse.itk.org/t/status-of-itk-logger-classes/5664 "2023-02-01T17:27:44Z")

</div>

ITK has this group of Logger and LogOutput classes, originally by Hee-Su Kim, and included with ITK in 2005: Are they still recommended to be used within a new application? Because they look rather old, and there are …

---

## [itk-wasm PipelineFunctor with 2 input image types](https://discourse.itk.org/t/itk-wasm-pipelinefunctor-with-2-input-image-types/5657)

<div class="topic-metadata">

**Author:** [@PaulHax](https://discourse.itk.org/u/PaulHax)\
**Replies:** 1\
**Last updated:** [January 31, 2023, 12:07pm UTC](https://discourse.itk.org/t/itk-wasm-pipelinefunctor-with-2-input-image-types/5657 "2023-01-31T12:07:36Z")

</div>

Hello! I am making a checkerboard itk-wasm pipeline that takes 2 images, with possibly different component types. Using a itk::wasm::SupportInputImageTypes with a PipelineFunctor would be perfect. But I don’t know how …

---

## [cmake\_minimum\_required ITK\_NEWEST\_VALIDATED\_POLICIES\_VERSION 3.19.7?](https://discourse.itk.org/t/cmake-minimum-required-itk-newest-validated-policies-version-3-19-7/5644)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 10\
**Last updated:** [January 23, 2023, 8:52pm UTC](https://discourse.itk.org/t/cmake-minimum-required-itk-newest-validated-policies-version-3-19-7/5644 "2023-01-23T20:52:37Z")

</div>

ITK’s root CMakeLists starts with cmake\_minimum\_required(VERSION 3.16.3...3.19.7), or more precisely: Using the VERSION \<min\>...\<max\> parameters, as documented at https://cmake.org/cmake/help/v3.19/command/cmake\_minimu…

---

## [Any example or implement for image registration with cuda](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107)

<div class="topic-metadata">

**Author:** [@busyyang](https://discourse.itk.org/u/busyyang)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 9:30am UTC](https://discourse.itk.org/t/any-example-or-implement-for-image-registration-with-cuda/5107 "2023-01-17T09:30:10Z")

</div>

Hi all, we have implemented a demo for 2D/3D image registration with help by this article. But it cost too much time when registration even over 5 minites. We’d like to speed up the process. And cuda may help it, but we…

---

## [Testing with ctest fails when testing ITK5.2 with VTK9.2 with the itkVkGlue module in MSVC release mode](https://discourse.itk.org/t/testing-with-ctest-fails-when-testing-itk5-2-with-vtk9-2-with-the-itkvkglue-module-in-msvc-release-mode/5622)

<div class="topic-metadata">

**Author:** [@fab672000](https://discourse.itk.org/u/fab672000)\
**Replies:** 10\
**Last updated:** [January 16, 2023, 7:30pm UTC](https://discourse.itk.org/t/testing-with-ctest-fails-when-testing-itk5-2-with-vtk9-2-with-the-itkvkglue-module-in-msvc-release-mode/5622 "2023-01-16T19:30:56Z")

</div>

All tests passed but those: The following tests FAILED: 2538 - itkImageToVTKImageFilterTest (Failed) 2540 - itkVTKImageToImageFilterTest (Failed) Trace shows very similar root causes for the failing tests: Debug: …

---

## [Using ITK + Eigen](https://discourse.itk.org/t/using-itk-eigen/5627)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 2\
**Last updated:** [January 13, 2023, 9:42pm UTC](https://discourse.itk.org/t/using-itk-eigen/5627 "2023-01-13T21:42:37Z")

</div>

Hello, I am trying to use ITK with an external Eigen build. ITK was installed first in our server by the system analyst. Then I asked him if he could install Eigen. I am making an application that uses ITK for reading…

---

## [Missing header files in ITK package I built](https://discourse.itk.org/t/missing-header-files-in-itk-package-i-built/5620)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.itk.org/u/fedorov)\
**Replies:** 3\
**Last updated:** [January 10, 2023, 10:42pm UTC](https://discourse.itk.org/t/missing-header-files-in-itk-package-i-built/5620 "2023-01-10T22:42:05Z")

</div>

I am maintaining dcmqi, which is a library that uses ITK for a handful of operations, including IO and some basic filtering. For quite some time I used an older version of ITK, which I customized manually to take out as …

---

## [Name mangling for the Eigen library](https://discourse.itk.org/t/name-mangling-for-the-eigen-library/5562)

<div class="topic-metadata">

**Author:** [@Fijoy\_Vadakkumpadan](https://discourse.itk.org/u/Fijoy_Vadakkumpadan)\
**Replies:** 2\
**Last updated:** [January 9, 2023, 9:51am UTC](https://discourse.itk.org/t/name-mangling-for-the-eigen-library/5562 "2023-01-09T09:51:04Z")

</div>

Does ITK mangle the symbols in the Eigen 3rd party library it includes? The initial paragraph in this file states that it does the mangling to avoid conflicts with other copies of the Eigen library in the same process: …

---

## [What to do if the registration result is incorrect？](https://discourse.itk.org/t/what-to-do-if-the-registration-result-is-incorrect/5616)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 4:04am UTC](https://discourse.itk.org/t/what-to-do-if-the-registration-result-is-incorrect/5616 "2023-01-08T04:04:54Z")

</div>

I have a group of dicom images, and xyz has 15mm translation respectively. But I can’t get the correct result when I use itk to perform registration. The result is about 4, - 14, and 0 mm translation. I also get this res…

---

## [ITK ERROR: MattesMutualInformationImageToImageMetricv4(000001F33CCCA180): VirtualSampledPointSet must have 1 or more points.](https://discourse.itk.org/t/itk-error-mattesmutualinformationimagetoimagemetricv4-000001f33ccca180-virtualsampledpointset-must-have-1-or-more-points/5611)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 7\
**Last updated:** [January 7, 2023, 2:30am UTC](https://discourse.itk.org/t/itk-error-mattesmutualinformationimagetoimagemetricv4-000001f33ccca180-virtualsampledpointset-must-have-1-or-more-points/5611 "2023-01-07T02:30:59Z")

</div>

I want to complete a mask registration and add a mask to the dicom sequence to speed up the registration. I added a mask, but an error occurred in the title. I have checked my mask. There is data both internally and exte…

---

## [How to raise the quality of scientific Jupyter notebooks](https://discourse.itk.org/t/how-to-raise-the-quality-of-scientific-jupyter-notebooks/5615)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 11:13pm UTC](https://discourse.itk.org/t/how-to-raise-the-quality-of-scientific-jupyter-notebooks/5615 "2023-01-05T23:13:28Z")

</div>

Authors: Matt McCormick , Mary Elise Dedicke , Alex Remedios Reproducibility in Computational Experiments Jupyter has emerged as a fundamental component in artificial intelligence (AI) solution development and scientif…

---

## [Adding in-class \`{}\` default member initializers to data members of ITK classes](https://discourse.itk.org/t/adding-in-class-default-member-initializers-to-data-members-of-itk-classes/5613)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 11:34am UTC](https://discourse.itk.org/t/adding-in-class-default-member-initializers-to-data-members-of-itk-classes/5613 "2023-01-05T11:34:54Z")

</div>

Generally speaking, it appears hard to avoid undefined behavior when data members of classes aren’t consistently being initialized. We saw a few cases recently: Fix MSVC warning C26495: \`ZwQuerySystemInformation\`, \`m\_M…

---

## [Error adding mask during registration](https://discourse.itk.org/t/error-adding-mask-during-registration/5605)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 9:57am UTC](https://discourse.itk.org/t/error-adding-mask-during-registration/5605 "2023-01-04T09:57:12Z")

</div>

ImageMaskType::Pointer image = ImageMaskType::New(); ImageMaskType::SizeType outsize = {650,650,650 }; ImageMaskType::IndexType index = { { 0, 0, 0 } }; ImageMaskType::RegionType region; ImageMaskType::SpacingT…

---

## [Build Python Module Wheel for linux/arm64](https://discourse.itk.org/t/build-python-module-wheel-for-linux-arm64/5443)

<div class="topic-metadata">

**Author:** [@mdevl](https://discourse.itk.org/u/mdevl)\
**Replies:** 7\
**Last updated:** [December 20, 2022, 7:01pm UTC](https://discourse.itk.org/t/build-python-module-wheel-for-linux-arm64/5443 "2022-12-20T19:01:47Z")

</div>

While itk itself publishes wheels for pretty much all relevant architectures, I am facing the issue that I need to build a linux/arm64 python wheel for a specific module for which a linux/arm64 wheel is not available. T…

---

## [How to add initialization to the first level registration during cascade registration](https://discourse.itk.org/t/how-to-add-initialization-to-the-first-level-registration-during-cascade-registration/5576)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [December 19, 2022, 3:27am UTC](https://discourse.itk.org/t/how-to-add-initialization-to-the-first-level-registration-during-cascade-registration/5576 "2022-12-19T03:27:19Z")

</div>

I added initialization, but in the second level, it receives the results of the first level, but this result does not include the initialization of the first level. How do I do it

---

## [Image Compression Performance](https://discourse.itk.org/t/image-compression-performance/5570)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 4\
**Last updated:** [December 13, 2022, 2:28pm UTC](https://discourse.itk.org/t/image-compression-performance/5570 "2022-12-13T14:28:21Z")

</div>

I have encountered a situations where using gzip level 9 to compress an image is taking ~40x longer (depending on the image content) than writing the image without compression @dzenanz I recall you did some performance …

---

## [Unsupported compiler in Qt](https://discourse.itk.org/t/unsupported-compiler-in-qt/5538)

<div class="topic-metadata">

**Author:** [@Ellen-D216](https://discourse.itk.org/u/Ellen-D216)\
**Replies:** 1\
**Last updated:** [December 1, 2022, 4:45pm UTC](https://discourse.itk.org/t/unsupported-compiler-in-qt/5538 "2022-12-01T16:45:26Z")

</div>

Hello, I successfully built ITK5.2 libraries with gcc11, but having an issue using ITK in Qt. I’m getting an “Unsupported compiler” error thrown by the generated include file itk\_compiler\_detection.h from this conditio…

---

## [Segmentation fault when running static linked executable on Ubuntu](https://discourse.itk.org/t/segmentation-fault-when-running-static-linked-executable-on-ubuntu/4826)

<div class="topic-metadata">

**Author:** [@Keyn34](https://discourse.itk.org/u/Keyn34)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 2:37pm UTC](https://discourse.itk.org/t/segmentation-fault-when-running-static-linked-executable-on-ubuntu/4826 "2022-11-29T14:37:26Z")

</div>

Hey everyone (again :)), I’m trying to run a static linked executable on Ubuntu 20.04.3. For this purpose, I configured ITK 5.2.1 with CMake, made sure to set BUILD\_SHARED\_LIBS and ITK\_DYNAMIC\_LOADING to OFF, and procee…

---

## [How to get m\_LineContainer from the labelObject?](https://discourse.itk.org/t/how-to-get-m-linecontainer-from-the-labelobject/5528)

<div class="topic-metadata">

**Author:** [@SummerZ2020](https://discourse.itk.org/u/SummerZ2020)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 8:33am UTC](https://discourse.itk.org/t/how-to-get-m-linecontainer-from-the-labelobject/5528 "2022-11-29T08:33:45Z")

</div>

hello, Thank you for the great work, it helps me a lot. currently, I need the points positions in the m\_LineContainer of labelObject? As I know, m\_LineContainer is private variable, how can I get it from my code? Thanks…

---

## [How to understand the world coordinate of DSA?](https://discourse.itk.org/t/how-to-understand-the-world-coordinate-of-dsa/5490)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 10\
**Last updated:** [November 28, 2022, 2:16pm UTC](https://discourse.itk.org/t/how-to-understand-the-world-coordinate-of-dsa/5490 "2022-11-28T14:16:01Z")

</div>

DSA (digital subtraction angiography) have two important tags: (0018, 1110) Distance Source to Detector (0018, 1111) Distance Source to Patient The DSA image is perspective projection to an object, likes: where S i…

---

## [AttributeError: module ‘itk’ has no attribute ‘DescoteauxSheetnessImageFilter’](https://discourse.itk.org/t/attributeerror-module-itk-has-no-attribute-descoteauxsheetnessimagefilter/5524)

<div class="topic-metadata">

**Author:** [@Konohana](https://discourse.itk.org/u/Konohana)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 4:35pm UTC](https://discourse.itk.org/t/attributeerror-module-itk-has-no-attribute-descoteauxsheetnessimagefilter/5524 "2022-11-24T16:35:59Z")

</div>

Hey there I am trying to use the SheetnessImageFilter from itk in python. However I am getting an AttributeError for this particular filter, others work fine. I saw in another thread that it could be due to incompatibil…

---

## [itk 5.3rc4.post3: Failure to load libtbb library (observed on macOS 10.13)](https://discourse.itk.org/t/itk-5-3rc4-post3-failure-to-load-libtbb-library-observed-on-macos-10-13/5405)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.itk.org/u/jcfr)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 1:55pm UTC](https://discourse.itk.org/t/itk-5-3rc4-post3-failure-to-load-libtbb-library-observed-on-macos-10-13/5405 "2022-11-14T13:55:47Z")

</div>

To follow up on ITK 5.3 Release Candidate 4 available for testing, I may have identified few issues found with itk 5.3rc4.post3 specific to macOS that are related to the bundling of libtbb.12.3.dylib. Context While the …

---

## [After switching to python 3.10 I can no longer pip install the same versions of itk as when using python 3.9.](https://discourse.itk.org/t/after-switching-to-python-3-10-i-can-no-longer-pip-install-the-same-versions-of-itk-as-when-using-python-3-9/5466)

<div class="topic-metadata">

**Author:** [@br\_cpvc](https://discourse.itk.org/u/br_cpvc)\
**Replies:** 5\
**Last updated:** [November 4, 2022, 12:48pm UTC](https://discourse.itk.org/t/after-switching-to-python-3-10-i-can-no-longer-pip-install-the-same-versions-of-itk-as-when-using-python-3-9/5466 "2022-11-04T12:48:07Z")

</div>

I’m not entirely sure if this is the expected behavior or not. I have tried to find the root cause of this, but I lack the knowledge of how the internals work and I’m not able to find the cause. As far as I can see https…

---

## [How can I read/write series of .tiff in webpage using itk.js?](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464)

<div class="topic-metadata">

**Author:** [@Yuvi-416](https://discourse.itk.org/u/Yuvi-416)\
**Replies:** 2\
**Last updated:** [November 4, 2022, 12:00pm UTC](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464 "2022-11-04T12:00:55Z")

</div>

Hi all, I am trying to read a series of .tiff or .tif files into the webpage using ITK.js. I know it supports it as it’s here Supported Image File Formats | itk-wasm and it says I have to use the readImageFileSeries fun…

---

## [ThreadFunctionType, ITK\_THREAD\_RETURN\_TYPE, and 32-bit Windows](https://discourse.itk.org/t/threadfunctiontype-itk-thread-return-type-and-32-bit-windows/5457)

<div class="topic-metadata">

**Author:** [@gcsharp](https://discourse.itk.org/u/gcsharp)\
**Replies:** 3\
**Last updated:** [November 2, 2022, 7:56pm UTC](https://discourse.itk.org/t/threadfunctiontype-itk-thread-return-type-and-32-bit-windows/5457 "2022-11-02T19:56:39Z")

</div>

Hi, I encountered a problem on 32-bit windows for ITK 5.X. In ITK 4, thread functions were defined as follows: typedef unsigned(\_\_stdcall \* ThreadFunctionType)(void \*); #define ITK\_THREAD\_RETURN\_TYPE unsigned \_\_stdcall…

---

## [runPipelineNode](https://discourse.itk.org/t/runpipelinenode/5271)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 6:34am UTC](https://discourse.itk.org/t/runpipelinenode/5271 "2022-10-26T06:34:19Z")

</div>

Hi everyone, I have hard time to extend ITK-WASM HelloWasm example to MedianFilterTest.cxx example. I managed to build it using itk-wasm build command in node.js terminal command line in VSCODE. MedianFilterTest.js/umd/…

---

## [OTSU thresholding binary image](https://discourse.itk.org/t/otsu-thresholding-binary-image/5409)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 12:59pm UTC](https://discourse.itk.org/t/otsu-thresholding-binary-image/5409 "2022-10-12T12:59:34Z")

</div>

Hi, does any one have any sample data for OTSU thresholding that i could use. I refer to the example Threshold An Image Using OTSU? Here is the link: https://examples.itk.org/src/filtering/thresholding/thresholdanimage…

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

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