# Engineering

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

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

**Page:** 14

---

## [Building modules against installed ITK](https://discourse.itk.org/t/building-modules-against-installed-itk/2608)

<div class="topic-metadata">

**Author:** [@dcthomp](https://discourse.itk.org/u/dcthomp)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 10:49pm UTC](https://discourse.itk.org/t/building-modules-against-installed-itk/2608 "2020-01-11T22:49:57Z")

</div>

Hi all, I would like to build ITKVtkGlue against an installed ITK (so I can link to a VTK built by ParaView as part of a superbuild). I get an error saying this is unsupported, however, Ben Boeckel says that could lead …

---

## [Link error on declaring metrics in two different classes](https://discourse.itk.org/t/link-error-on-declaring-metrics-in-two-different-classes/2600)

<div class="topic-metadata">

**Author:** [@sbruge](https://discourse.itk.org/u/sbruge)\
**Replies:** 3\
**Last updated:** [January 10, 2020, 8:20pm UTC](https://discourse.itk.org/t/link-error-on-declaring-metrics-in-two-different-classes/2600 "2020-01-10T20:20:13Z")

</div>

Hi everyone, I’m stuck on a compilation issue using visual studio (2017 or 2019). I need to implement two classes: one using GradientDifferenceImageToImageMetric and another one using MeanSquaresImageToImageMetricv4. Bu…

---

## [How to disable print messages from ITK functions](https://discourse.itk.org/t/how-to-disable-print-messages-from-itk-functions/2590)

<div class="topic-metadata">

**Author:** [@pradeep](https://discourse.itk.org/u/pradeep)\
**Replies:** 8\
**Last updated:** [January 8, 2020, 2:27pm UTC](https://discourse.itk.org/t/how-to-disable-print-messages-from-itk-functions/2590 "2020-01-08T14:27:31Z")

</div>

I am using GPUAnisotropicSmoothingFilter for running some benchmarks and the printout similar to the below appears quite a lot disrupting the outptu from the benchmark reporting tool I use. Is there a way to disable such…

---

## [Concept of ITK pipeline and correlation to source repo structure](https://discourse.itk.org/t/concept-of-itk-pipeline-and-correlation-to-source-repo-structure/2572)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Replies:** 4\
**Last updated:** [December 26, 2019, 9:21pm UTC](https://discourse.itk.org/t/concept-of-itk-pipeline-and-correlation-to-source-repo-structure/2572 "2019-12-26T21:21:15Z")

</div>

Hi All, I am in process to come up with a source code structure that I developed my prototype use case using simple ITK and python. I wanted to learn concept of pipeline in ITK does it have any correlation to how I would…

---

## [Build ITK for older CPUs](https://discourse.itk.org/t/build-itk-for-older-cpus/2570)

<div class="topic-metadata">

**Author:** [@nm97](https://discourse.itk.org/u/nm97)\
**Replies:** 3\
**Last updated:** [December 25, 2019, 4:36pm UTC](https://discourse.itk.org/t/build-itk-for-older-cpus/2570 "2019-12-25T16:36:33Z")

</div>

Hi, I would like to know what would be the best way to build ITK for different set of CPU instrctions. I get crash for certain machines that do not have SSE4 or SSE3 CPU instruction. Is it possible to build multiple d…

---

## [CDash \[Insight\] - Update Errors](https://discourse.itk.org/t/cdash-insight-update-errors/2553)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 8\
**Last updated:** [December 23, 2019, 7:56pm UTC](https://discourse.itk.org/t/cdash-insight-update-errors/2553 "2019-12-23T19:56:55Z")

</div>

itk.org is undergoing a makeover. I guess git infrastructure is being removed from it, now that we have migrated to GitHub. I got the following email: corista.kitware has encountered errors during the Update step and y…

---

## [VTKGlue and ITKVtkGlue.castxml.inc](https://discourse.itk.org/t/vtkglue-and-itkvtkglue-castxml-inc/2566)

<div class="topic-metadata">

**Author:** [@melrobin](https://discourse.itk.org/u/melrobin)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 3:48am UTC](https://discourse.itk.org/t/vtkglue-and-itkvtkglue-castxml-inc/2566 "2019-12-23T03:48:44Z")

</div>

I am trying to fix a problem compiling VTKGlue. Can you tell me how the build system produces the file./Wrapping/ITKVtkGlue.castxml.inc? I have poured the CMakeList.txt, but cannot tell where this is done.

---

## [ITK on Windows \[SOLVED\]](https://discourse.itk.org/t/itk-on-windows-solved/2552)

<div class="topic-metadata">

**Author:** [@fraca](https://discourse.itk.org/u/fraca)\
**Replies:** 2\
**Last updated:** [December 19, 2019, 7:35pm UTC](https://discourse.itk.org/t/itk-on-windows-solved/2552 "2019-12-19T19:35:56Z")

</div>

Hi, there’s an another way to build the ITK library for c++, without using VS2019, due to the issues that it has?

---

## [save and write a .vtk polydata file](https://discourse.itk.org/t/save-and-write-a-vtk-polydata-file/2516)

<div class="topic-metadata">

**Author:** [@nour](https://discourse.itk.org/u/nour)\
**Replies:** 12\
**Last updated:** [December 19, 2019, 2:16pm UTC](https://discourse.itk.org/t/save-and-write-a-vtk-polydata-file/2516 "2019-12-19T14:16:29Z")

</div>

I used this puyhon code to convert nifti file to .vtk polydata meshes import itk import vtk input\_filename = '/home/nour/Bureau/7ans/244/whatIneed/244seg\_pve\_2.nii.gz' reader=itk.ImageFileReader\[itk.Image\[itk.UC,3\]\].New…

---

## [Error using itkNormalizedMutualInformationHistogramImageToImageMetric](https://discourse.itk.org/t/error-using-itknormalizedmutualinformationhistogramimagetoimagemetric/2540)

<div class="topic-metadata">

**Author:** [@fangc](https://discourse.itk.org/u/fangc)\
**Replies:** 3\
**Last updated:** [December 18, 2019, 4:23pm UTC](https://discourse.itk.org/t/error-using-itknormalizedmutualinformationhistogramimagetoimagemetric/2540 "2019-12-18T16:23:46Z")

</div>

Hello, I am trying to use the metric of Normalized Mutual Information for rigid registration. Here is part of my code: #include "itkImageRegistrationMethodv4.h" #include "itkVersorRigid3DTransform.h" #include "itkCente…

---

## [Anisotropic diffusion filter does not work with ct scan that has pixel type of 32 bit signed integer](https://discourse.itk.org/t/anisotropic-diffusion-filter-does-not-work-with-ct-scan-that-has-pixel-type-of-32-bit-signed-integer/2533)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Replies:** 0\
**Last updated:** [December 17, 2019, 4:41am UTC](https://discourse.itk.org/t/anisotropic-diffusion-filter-does-not-work-with-ct-scan-that-has-pixel-type-of-32-bit-signed-integer/2533 "2019-12-17T04:41:41Z")

</div>

Hi Team, I was trying to denoise CT can image with anisotropic diffusion and I get unsupported pixel type error. I switched to Curvature flow but any ways I can make it work with Anisotropic diffusion filter? Thanks Jite…

---

## [CurvatureFlowImageFilter slowdown on Mac](https://discourse.itk.org/t/curvatureflowimagefilter-slowdown-on-mac/2530)

<div class="topic-metadata">

**Author:** [@nm97](https://discourse.itk.org/u/nm97)\
**Replies:** 0\
**Last updated:** [December 16, 2019, 2:01pm UTC](https://discourse.itk.org/t/curvatureflowimagefilter-slowdown-on-mac/2530 "2019-12-16T14:01:05Z")

</div>

Hi. I’m using CurvatureFlowImageFilter.cxx example. My Linux machine works 50% faster than Mac. Both have 16 cores and DefaultNumberOfThreads() returns 16 Linux: - 16gb RAM, i7, 2016, SSD. Mac - 16gb RAM, i7, 2017, …

---

## [CurvatureAnisotropicDiffusionImageFilterTest failures](https://discourse.itk.org/t/curvatureanisotropicdiffusionimagefiltertest-failures/2496)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 9\
**Last updated:** [December 12, 2019, 6:44pm UTC](https://discourse.itk.org/t/curvatureanisotropicdiffusionimagefiltertest-failures/2496 "2019-12-12T18:44:22Z")

</div>

Hi all, This test fails on 2 of my bots, but passes on others: https://open.cdash.org/testSummary.php?project=2&name=CurvatureAnisotropicDiffusionImageFilterTest&date=2019-12-09 Oddly, on Rogue7 it passes in Release b…

---

## [Error: ImageToVTKImageFilter returning none in python, ITK 5.0.1](https://discourse.itk.org/t/error-imagetovtkimagefilter-returning-none-in-python-itk-5-0-1/2396)

<div class="topic-metadata">

**Author:** [@Ujhik](https://discourse.itk.org/u/Ujhik)\
**Replies:** 3\
**Last updated:** [December 12, 2019, 8:46am UTC](https://discourse.itk.org/t/error-imagetovtkimagefilter-returning-none-in-python-itk-5-0-1/2396 "2019-12-12T08:46:16Z")

</div>

Hello, i’m using Itk 5.0.1 with Vtk 8.2 copiled by myself with itkVtkGlue and python wrapping on Windows, both static. When i call ImageToVTKImageFilter in python, it returns None. I have Itk 5.0.1 and Vtk 8.2 compiled…

---

## [How to upgrade GoogleTest?](https://discourse.itk.org/t/how-to-upgrade-googletest/2477)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 15\
**Last updated:** [December 11, 2019, 6:16pm UTC](https://discourse.itk.org/t/how-to-upgrade-googletest/2477 "2019-12-11T18:16:36Z")

</div>

ITK has quite an old version of GoogleTest. The last update appears to be two years ago, by Francois Budin @fbudin: This old version of GoogleTest produces some static analysis warnings (like "warning C26477: Use ‘nu…

---

## [ITK metrics direct application](https://discourse.itk.org/t/itk-metrics-direct-application/2495)

<div class="topic-metadata">

**Author:** [@machadoL](https://discourse.itk.org/u/machadoL)\
**Replies:** 8\
**Last updated:** [December 9, 2019, 7:23pm UTC](https://discourse.itk.org/t/itk-metrics-direct-application/2495 "2019-12-09T19:23:52Z")

</div>

Hey Guys! I’d like to hear form you if it is possible to apply itk similarity metrics (derived from itkImagetoImageMetric.h) directly for two images. The thing is: I’d like to used different similarity metrics to measu…

---

## [Some DICOM tags are not copied even when setting LoadPrivateTagsOn & SetMaxSizeLoadEntry](https://discourse.itk.org/t/some-dicom-tags-are-not-copied-even-when-setting-loadprivatetagson-setmaxsizeloadentry/2493)

<div class="topic-metadata">

**Author:** [@Silvina](https://discourse.itk.org/u/Silvina)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 2:20pm UTC](https://discourse.itk.org/t/some-dicom-tags-are-not-copied-even-when-setting-loadprivatetagson-setmaxsizeloadentry/2493 "2019-12-09T14:20:04Z")

</div>

Hi, I am trying to anonymize DICOM files, while keeping the rest of the data. Some keys are lost during the copy, for example: 00e1|1046, 01f1|100f , 01f1|1044, 01f7|109b Also one key is added 0028|1054 with value U…

---

## [Error while installing the Simple ITK manually](https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 2\
**Last updated:** [December 6, 2019, 5:19am UTC](https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479 "2019-12-06T05:19:23Z")

</div>

I’m trying to install the SimpleITK manually according this link Building Simple ITK manually because I need to run the Simple ITK in C++ using the qmake, but I’m getting this error: CMake Error at PythonVirtualEnvInsta…

---

## [itk::Image support for non-contiguous memory?](https://discourse.itk.org/t/itk-image-support-for-non-contiguous-memory/2443)

<div class="topic-metadata">

**Author:** [@Bram](https://discourse.itk.org/u/Bram)\
**Replies:** 4\
**Last updated:** [December 4, 2019, 6:10pm UTC](https://discourse.itk.org/t/itk-image-support-for-non-contiguous-memory/2443 "2019-12-04T18:10:20Z")

</div>

(this might as well fit in the beginner category :wink:) I’m looking at integrating ITK into our libraries, which would mean creating a bridge between itk::Image and our in-house data structure for 3D uniform grid volum…

---

## [Cryptic error message when failing to load frames of different sizes](https://discourse.itk.org/t/cryptic-error-message-when-failing-to-load-frames-of-different-sizes/2463)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.itk.org/u/lassoan)\
**Replies:** 3\
**Last updated:** [December 3, 2019, 8:27pm UTC](https://discourse.itk.org/t/cryptic-error-message-when-failing-to-load-frames-of-different-sizes/2463 "2019-12-03T20:27:04Z")

</div>

We use itkImageFileReader in Slicer to read image stacks and it works well. However, time to time users report that the reader fails with this error: Exception from vtkITK MegaMacro: itk::InvalidRequestedRegionError (…

---

## [How to migrate old codes those were used itkAffineGeometryFrame to ITK5.0?](https://discourse.itk.org/t/how-to-migrate-old-codes-those-were-used-itkaffinegeometryframe-to-itk5-0/2446)

<div class="topic-metadata">

**Author:** [@mikehaoming](https://discourse.itk.org/u/mikehaoming)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 7:16pm UTC](https://discourse.itk.org/t/how-to-migrate-old-codes-those-were-used-itkaffinegeometryframe-to-itk5-0/2446 "2019-11-26T19:16:24Z")

</div>

As our old project use itkAffineGeometryFrame in a lot of code files. But itkAffineGeometryFrame is removed in ITK5.0. How to migrate these codes to ITK5.0?

---

## [Crash in WatershedImageFilter](https://discourse.itk.org/t/crash-in-watershedimagefilter/2428)

<div class="topic-metadata">

**Author:** [@nm97](https://discourse.itk.org/u/nm97)\
**Replies:** 11\
**Last updated:** [November 25, 2019, 9:01pm UTC](https://discourse.itk.org/t/crash-in-watershedimagefilter/2428 "2019-11-25T21:01:04Z")

</div>

Hi, I am trying to run WatershedImageFilter class function with this arguments(image -{0.,0.,0.,0.,1.f/4503599627370496.f,0.,0.}, 1.0(Level), 0.0(Threshold)). #include "itkWatershedImageFilter.h" #include "itkCastImage…

---

## [Changing the range of the voxel values](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 1\
**Last updated:** [November 25, 2019, 2:06pm UTC](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436 "2019-11-25T14:06:12Z")

</div>

I have an image that has their values in a range of 0 and 0.4, but I’d like to rescale its intensities to the range 0 - 1. Then I used the function RescaleIntensity(image, 0, 1), but the function returns me a black image…

---

## [Crash in SignedMaurerDistanceMapImageFilter when aborting](https://discourse.itk.org/t/crash-in-signedmaurerdistancemapimagefilter-when-aborting/2432)

<div class="topic-metadata">

**Author:** [@IanL](https://discourse.itk.org/u/IanL)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 10:28am UTC](https://discourse.itk.org/t/crash-in-signedmaurerdistancemapimagefilter-when-aborting/2432 "2019-11-22T10:28:52Z")

</div>

Hi all, I am trying to track down a crash I am seeing when aborting SignedMaurerDistanceMapImageFilter while it is generating a distance map. The crash occurs at line 299 in itkImageSource.hxx, ThreaderCallback() : Thr…

---

## [Linking ITK and QT (Ubuntu)](https://discourse.itk.org/t/linking-itk-and-qt-ubuntu/2415)

<div class="topic-metadata">

**Author:** [@FBT](https://discourse.itk.org/u/FBT)\
**Replies:** 6\
**Last updated:** [November 18, 2019, 12:58pm UTC](https://discourse.itk.org/t/linking-itk-and-qt-ubuntu/2415 "2019-11-18T12:58:27Z")

</div>

Hi I’ve been using ITK and Qt for a long time on windows. I am now trying to compile my soft on ubuntu 18.04 . ITK compiles well, the tests are OK. When linking my soft, I get the errors below. Has someone any idea ? T…

---

## [check with cmake if found ITK was compiled with GPU support](https://discourse.itk.org/t/check-with-cmake-if-found-itk-was-compiled-with-gpu-support/1522)

<div class="topic-metadata">

**Author:** [@grothausmann.roman](https://discourse.itk.org/u/grothausmann.roman)\
**Replies:** 5\
**Last updated:** [November 17, 2019, 1:13pm UTC](https://discourse.itk.org/t/check-with-cmake-if-found-itk-was-compiled-with-gpu-support/1522 "2019-11-17T13:13:00Z")

</div>

Hi! What is the state-of-the-art way to check with cmake which features are compiled into the ITK-library found on the system, spicifically if ITK was compiled with GPU support? Concerning enabled modules I am using th…

---

## [C# or F# or dotnet core bindings for the "main" ITK library instead of SimpleITK?](https://discourse.itk.org/t/c-or-f-or-dotnet-core-bindings-for-the-main-itk-library-instead-of-simpleitk/2361)

<div class="topic-metadata">

**Author:** [@vincenzoml](https://discourse.itk.org/u/vincenzoml)\
**Replies:** 15\
**Last updated:** [November 13, 2019, 5:49pm UTC](https://discourse.itk.org/t/c-or-f-or-dotnet-core-bindings-for-the-main-itk-library-instead-of-simpleitk/2361 "2019-11-13T17:49:00Z")

</div>

Hi all. In our research on declarative image analysis (see www.voxlogica.org) we have used with quite some success SimpleITK from fsharp. I now went to check whether ITK 5 is available in SimpleITK and the answer (gotten…

---

## [Multiprocessing for write and read file](https://discourse.itk.org/t/multiprocessing-for-write-and-read-file/2395)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 12:18am UTC](https://discourse.itk.org/t/multiprocessing-for-write-and-read-file/2395 "2019-11-13T00:18:28Z")

</div>

Hi all, I’m programming a python based software which uses multiprocessing technique. For one process, it will call “itk.ImageFileWrite” to export a 3D volume to a NRRD file (“write” operation). For the rest processes, …

---

## [is there a way to set custom metric in itk registration in python?](https://discourse.itk.org/t/is-there-a-way-to-set-custom-metric-in-itk-registration-in-python/705)

<div class="topic-metadata">

**Author:** [@sedghi](https://discourse.itk.org/u/sedghi)\
**Replies:** 7\
**Last updated:** [November 12, 2019, 4:40pm UTC](https://discourse.itk.org/t/is-there-a-way-to-set-custom-metric-in-itk-registration-in-python/705 "2019-11-12T16:40:56Z")

</div>

I have a similarity metric that I’d like to use in ImageRegistrationMethod in itk python, is there any way to do so?

---

## [curvatureAnisotropicDiffusionFilter](https://discourse.itk.org/t/curvatureanisotropicdiffusionfilter/2384)

<div class="topic-metadata">

**Author:** [@nm97](https://discourse.itk.org/u/nm97)\
**Replies:** 7\
**Last updated:** [November 8, 2019, 1:25pm UTC](https://discourse.itk.org/t/curvatureanisotropicdiffusionfilter/2384 "2019-11-08T13:25:13Z")

</div>

Hi, I’m using curvatureAnisotropicDiffusionFilter class. I get correct result after filtering, but In macOS is much more slower than Linux or Windows. Can someone tell the reason, or how can I fix this? Thank you

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

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