# Engineering

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

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

**Page:** 21

---

## [bundling ITK/VTK into a python app with pyinstaller for macOS](https://discourse.itk.org/t/bundling-itk-vtk-into-a-python-app-with-pyinstaller-for-macos/956)

<div class="topic-metadata">

**Author:** [@junon](https://discourse.itk.org/u/junon)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 7:45am UTC](https://discourse.itk.org/t/bundling-itk-vtk-into-a-python-app-with-pyinstaller-for-macos/956 "2018-05-28T07:45:48Z")

</div>

Hi there, Does anyone know how to do this properly? I’ve built itk 4.13.0 and vtk 8.1.0 and input all dylib, so files into the binary section of the pyinstaller spec and yet the bundled executable is still unable to run…

---

## [ViewImage in Python](https://discourse.itk.org/t/viewimage-in-python/951)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 0\
**Last updated:** [May 25, 2018, 4:16pm UTC](https://discourse.itk.org/t/viewimage-in-python/951 "2018-05-25T16:16:34Z")

</div>

With the module ‘ITKVtkGlue’ wrapped the following script works to visualize images without the need for external software in python: import itk PixelType = itk.UC Dimension = 3 ImageType = itk.Image\[PixelType, Dimensio…

---

## [itkApproximateSignedDistanceMapImageFilterTest1 failures](https://discourse.itk.org/t/itkapproximatesigneddistancemapimagefiltertest1-failures/913)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 1\
**Last updated:** [May 24, 2018, 3:25pm UTC](https://discourse.itk.org/t/itkapproximatesigneddistancemapimagefiltertest1-failures/913 "2018-05-24T15:25:57Z")

</div>

The following test has sporadic failures: https://open.cdash.org/testDetails.php?test=650830714&build=5365233 They occur more one highly multi-threaded system. I narrowed the failure down to the IsoContourDistanceIma…

---

## [Visual Studio debugger visualizers](https://discourse.itk.org/t/visual-studio-debugger-visualizers/944)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 0\
**Last updated:** [May 18, 2018, 1:53pm UTC](https://discourse.itk.org/t/visual-studio-debugger-visualizers/944 "2018-05-18T13:53:55Z")

</div>

Long ago, I created customized debug visualizers for ITK. But Visual Studio 2012 changed the format of that file, rendering it unusable. Due to pressing need to debug some code heavily involving itk::ImageRegions I creat…

---

## [Code style discussion](https://discourse.itk.org/t/code-style-discussion/930)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 6\
**Last updated:** [May 18, 2018, 1:45pm UTC](https://discourse.itk.org/t/code-style-discussion/930 "2018-05-18T13:45:15Z")

</div>

Maintaining coding style is hard without good tool support. EditorConfig seems to be the best way to accomplish that over a wide variety of platforms. Are there any volunteers to try to implement ITK’s style guide in an .…

---

## [Transfering external module ITKIsotropicWavelets to the InsightSoftwareConsortium](https://discourse.itk.org/t/transfering-external-module-itkisotropicwavelets-to-the-insightsoftwareconsortium/941)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 7\
**Last updated:** [May 17, 2018, 5:47pm UTC](https://discourse.itk.org/t/transfering-external-module-itkisotropicwavelets-to-the-insightsoftwareconsortium/941 "2018-05-17T17:47:43Z")

</div>

As spoken here: Some github docs about transfer. And as Matt pointed out, being a member of InsightSoftwareConsortium should be enough to transfer to it from a personal account. But the existing fork in ISC should be…

---

## [CMake error: Python Module](https://discourse.itk.org/t/cmake-error-python-module/860)

<div class="topic-metadata">

**Author:** [@melrobin](https://discourse.itk.org/u/melrobin)\
**Replies:** 2\
**Last updated:** [May 16, 2018, 4:33pm UTC](https://discourse.itk.org/t/cmake-error-python-module/860 "2018-05-16T16:33:34Z")

</div>

I turned the ITK\_WRAP\_PYTHON variable on using ccmake and get a weird Cmake error when trying to configure. I cannot find any information for WRAP\_CLASS. CMake Error at Modules/Remote/ParabolicMorphology/wrapping/itkM…

---

## [Testing unsupported values in enums](https://discourse.itk.org/t/testing-unsupported-values-in-enums/926)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Replies:** 4\
**Last updated:** [May 16, 2018, 3:31pm UTC](https://discourse.itk.org/t/testing-unsupported-values-in-enums/926 "2018-05-16T15:31:03Z")

</div>

Hi, this is an issue that @seanm brought to the table in this gerrit topic: http://review.source.kitware.com/#/c/23321/ So the question is that some compilers throw a warning for some values that are not certainly lis…

---

## [CMake update](https://discourse.itk.org/t/cmake-update/870)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 22\
**Last updated:** [May 16, 2018, 1:03pm UTC](https://discourse.itk.org/t/cmake-update/870 "2018-05-16T13:03:32Z")

</div>

Ubuntu 18.04 will soon be out. It comes with CMake 3.10.2. We said we will require that version for ITK 5.0. I suppose now is a good time to start requiring it? Anyone wanting to do that patching? Saying that is just as …

---

## [Gtest with ITK\_USE\_SYSTEM\_LIBRARIES](https://discourse.itk.org/t/gtest-with-itk-use-system-libraries/935)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 2\
**Last updated:** [May 15, 2018, 7:38pm UTC](https://discourse.itk.org/t/gtest-with-itk-use-system-libraries/935 "2018-05-15T19:38:50Z")

</div>

Hi, just compiling ITK in new laptop and hitting the following, I have no gtest installed in the computer, but I do want to use other system libraries (fftw mainly) cmake -G Ninja ../ITK-src \\ -DExternalData\_OBJECT\_STOR…

---

## [LevelSetsv4Visualization tests SEGFAULT](https://discourse.itk.org/t/levelsetsv4visualization-tests-segfault/912)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 0\
**Last updated:** [May 9, 2018, 5:26pm UTC](https://discourse.itk.org/t/levelsetsv4visualization-tests-segfault/912 "2018-05-09T17:26:24Z")

</div>

I think that all the tests in non-default module LevelSetsv4Visualization fail with the error of the style Generic Warning: In /home/dzenan/VTK-8.1.0/Rendering/Core/vtkRenderer.cxx, line 55 Error: no override found fo…

---

## [Marking ITK includes as SYSTEM](https://discourse.itk.org/t/marking-itk-includes-as-system/910)

<div class="topic-metadata">

**Author:** [@spinicist](https://discourse.itk.org/u/spinicist)\
**Replies:** 2\
**Last updated:** [May 8, 2018, 3:37pm UTC](https://discourse.itk.org/t/marking-itk-includes-as-system/910 "2018-05-08T15:37:09Z")

</div>

Hello, I have recently discovered the SYSTEM flag for include\_directories() (https://cmake.org/cmake/help/v3.0/command/include\_directories.html). I’ve added this to my main CMake file for all external libraries that use…

---

## [Is image.GetOffsetTable()\[0\] always equal to 1?](https://discourse.itk.org/t/is-image-getoffsettable-0-always-equal-to-1/893)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 6\
**Last updated:** [May 8, 2018, 1:22pm UTC](https://discourse.itk.org/t/is-image-getoffsettable-0-always-equal-to-1/893 "2018-05-08T13:22:01Z")

</div>

itkShapedImageNeighborhoodRange.h has the following assert: const OffsetValueType\* const offsetTable = image.GetOffsetTable(); assert((offsetTable != nullptr) && (offsetTable\[0\] == 1)); Is it safe to assume that the fi…

---

## [FilterWatcher](https://discourse.itk.org/t/filterwatcher/882)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 5\
**Last updated:** [May 7, 2018, 5:14pm UTC](https://discourse.itk.org/t/filterwatcher/882 "2018-05-07T17:14:48Z")

</div>

FilterWatcher class from itkFilterWatcher.h is not in itk:: namespace. I added in issue. Should we move it there? This patch fixes an unrelated bug in that class.

---

## [Result of itk.Size](https://discourse.itk.org/t/result-of-itk-size/851)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 5\
**Last updated:** [May 7, 2018, 8:56am UTC](https://discourse.itk.org/t/result-of-itk-size/851 "2018-05-07T08:56:10Z")

</div>

Hi all, The result of itk.Size seems to be different between ITK 4.13.0 and ITK 5.0. Is this a bug? Thanks. \[image\] Regards, Zhuangming Shen

---

## [ITK\_DISALLOW\_COPY\_AND\_ASSIGN?](https://discourse.itk.org/t/itk-disallow-copy-and-assign/648)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 31\
**Last updated:** [May 5, 2018, 12:20pm UTC](https://discourse.itk.org/t/itk-disallow-copy-and-assign/648 "2018-05-05T12:20:10Z")

</div>

Should we implement a mechanism similar to boost’s noncopyable and put it somewhere in the filter class hierarchy?

---

## [Build error with 64-bit Qt](https://discourse.itk.org/t/build-error-with-64-bit-qt/895)

<div class="topic-metadata">

**Author:** [@Gib](https://discourse.itk.org/u/Gib)\
**Replies:** 6\
**Last updated:** [May 3, 2018, 9:46pm UTC](https://discourse.itk.org/t/build-error-with-64-bit-qt/895 "2018-05-03T21:46:35Z")

</div>

I am trying to build a Qt program on Windows7 with 64-bit Qt, ITK and VTK. I have done this before, several years ago, and I suspect that I’ve forgotten a key step. I’m using a CMakeLists.txt file, and after setting th…

---

## [Python Wrapping error: cannot define or redeclare 'X' here because namespace 'wrappers' does not enclose namespace 'itk'](https://discourse.itk.org/t/python-wrapping-error-cannot-define-or-redeclare-x-here-because-namespace-wrappers-does-not-enclose-namespace-itk/886)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 10\
**Last updated:** [May 2, 2018, 3:16pm UTC](https://discourse.itk.org/t/python-wrapping-error-cannot-define-or-redeclare-x-here-because-namespace-wrappers-does-not-enclose-namespace-itk/886 "2018-05-02T15:16:16Z")

</div>

I am trying to wrap a single function itk::ViewImage, but hitting errors that I am not sure how to solve. Any hint would be appreciated! ITK/build-src/Wrapping/itkViewImage.cxx:26:18: error: cannot define or redeclare '…

---

## [Is it possible to tell ITK to allocate aligned memory?](https://discourse.itk.org/t/is-it-possible-to-tell-itk-to-allocate-aligned-memory/869)

<div class="topic-metadata">

**Author:** [@kaspermarstal](https://discourse.itk.org/u/kaspermarstal)\
**Replies:** 4\
**Last updated:** [May 2, 2018, 2:32pm UTC](https://discourse.itk.org/t/is-it-possible-to-tell-itk-to-allocate-aligned-memory/869 "2018-05-02T14:32:10Z")

</div>

Hello, Is there some way to tell ITK to allocate images at e.g. 16-byte-aligned locations, or is there some way to pass ITK a custom allocator that does this? I have gone through the code and suspect not. Looking to ha…

---

## [One -Wunused-template warning left, anyone know how to fix it?](https://discourse.itk.org/t/one-wunused-template-warning-left-anyone-know-how-to-fix-it/871)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 1\
**Last updated:** [April 26, 2018, 2:31pm UTC](https://discourse.itk.org/t/one-wunused-template-warning-left-anyone-know-how-to-fix-it/871 "2018-04-26T14:31:15Z")

</div>

Hi all, My bots have just one -Wunused-template warning left: ITK/Modules/Core/Common/test/itkAggregateTypesTest.cxx:116:15: warning: unused function template ‘operator\<\<’ \[-Wunused-template\] std::ostream &operator\<\<(…

---

## [Free image memory](https://discourse.itk.org/t/free-image-memory/863)

<div class="topic-metadata">

**Author:** [@Gib](https://discourse.itk.org/u/Gib)\
**Replies:** 13\
**Last updated:** [April 25, 2018, 11:47pm UTC](https://discourse.itk.org/t/free-image-memory/863 "2018-04-25T23:47:05Z")

</div>

Hi, I am working with very big images (\> 5GB) and running out of memory. I’d like to know how I should free the memory used by an image that I’ve read, after I no longer need it. My code looks like this: typedef itk:…

---

## [Rendering Volume from series of DICOM images](https://discourse.itk.org/t/rendering-volume-from-series-of-dicom-images/866)

<div class="topic-metadata">

**Author:** [@rasoul](https://discourse.itk.org/u/rasoul)\
**Replies:** 4\
**Last updated:** [April 25, 2018, 7:22am UTC](https://discourse.itk.org/t/rendering-volume-from-series-of-dicom-images/866 "2018-04-25T07:22:33Z")

</div>

Hi every body, I wanna to load a series of DICOM images and rendering them. I use ITK for reading them and VTK for rendering. I used the code: https://github.com/quentan/DICOM\_ITK\_VTK/blob/master/main.cxx But I get th…

---

## [Reading and writing a DICOM slice in ITK with GDCM removes tags](https://discourse.itk.org/t/reading-and-writing-a-dicom-slice-in-itk-with-gdcm-removes-tags/861)

<div class="topic-metadata">

**Author:** [@benpresles](https://discourse.itk.org/u/benpresles)\
**Replies:** 4\
**Last updated:** [April 24, 2018, 1:53pm UTC](https://discourse.itk.org/t/reading-and-writing-a-dicom-slice-in-itk-with-gdcm-removes-tags/861 "2018-04-24T13:53:30Z")

</div>

Dear ITK users, I created a simple ITK program that reads a dicom slice and writes it back. The output generated dicom does not contain as many tags as the input dicom. Some tags are missing like 0008,1032. I don’t unde…

---

## [Build errors](https://discourse.itk.org/t/build-errors/838)

<div class="topic-metadata">

**Author:** [@melrobin](https://discourse.itk.org/u/melrobin)\
**Replies:** 3\
**Last updated:** [April 19, 2018, 3:48pm UTC](https://discourse.itk.org/t/build-errors/838 "2018-04-19T15:48:09Z")

</div>

I have a new build error: \[ 92%\] Building CXX object Modules/Remote/SkullStrip/test/CMakeFiles/SkullStripTestDriver.dir/SkullStripTestDriver.cxx.o In file included from /home/melrobin/packages/ITK/Modules/Core/TestKern…

---

## [ITKv4Compatibility](https://discourse.itk.org/t/itkv4compatibility/848)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 1\
**Last updated:** [April 19, 2018, 1:55pm UTC](https://discourse.itk.org/t/itkv4compatibility/848 "2018-04-19T13:55:23Z")

</div>

Hi all, When I configured ITK v5.0 using CMake 3.9.5, I enabled ITKV4\_COMPATIBILITY, but an error happened. Could anyone tell me what’s the problem? Thanks. \[image\] Regards, Zhuangming Shen

---

## [Removal of \`virtual\` keywords from ConstNeighborhoodIterator](https://discourse.itk.org/t/removal-of-virtual-keywords-from-constneighborhooditerator/814)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 14\
**Last updated:** [April 9, 2018, 7:46pm UTC](https://discourse.itk.org/t/removal-of-virtual-keywords-from-constneighborhooditerator/814 "2018-04-09T19:46:49Z")

</div>

@Niels\_Dekker suggests a somewhat significant interface change to ConstNeighborhoodIterator. But I think that it is not likely anyone created derived classes of it, so it is probably a non-issue. If someone has a contrar…

---

## [VTK9 and ITK5 conflicts](https://discourse.itk.org/t/vtk9-and-itk5-conflicts/802)

<div class="topic-metadata">

**Author:** [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)\
**Replies:** 5\
**Last updated:** [March 27, 2018, 8:02pm UTC](https://discourse.itk.org/t/vtk9-and-itk5-conflicts/802 "2018-03-27T20:02:52Z")

</div>

When vtkMultithreader.h and itkMultiThreader.h are both used then VTK/Common/Core/vtkMultiThreader.h line 95 #define ThreadInfoStruct vtkMultiThreader::ThreadInfo causes conflicts with ITK (master as of 20180326) Mod…

---

## [Help with null deref in 'itkTreeContainerTest'](https://discourse.itk.org/t/help-with-null-deref-in-itktreecontainertest/826)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 9:42pm UTC](https://discourse.itk.org/t/help-with-null-deref-in-itktreecontainertest/826 "2018-04-04T21:42:02Z")

</div>

Hi all, With UBSan, one of my dashboard bots finds a null deref in ‘itkTreeContainerTest’: /ITK/Modules/Core/Common/include/itkPreOrderTreeIterator.h:99:28: runtime error: member call on null pointer of type ‘itk::Tree…

---

## [Reading an image with five components](https://discourse.itk.org/t/reading-an-image-with-five-components/815)

<div class="topic-metadata">

**Author:** [@cyril.mory](https://discourse.itk.org/u/cyril.mory)\
**Replies:** 2\
**Last updated:** [March 30, 2018, 2:30pm UTC](https://discourse.itk.org/t/reading-an-image-with-five-components/815 "2018-03-30T14:30:57Z")

</div>

Hi everyone, I’m trying to read an image with 5 components with itk::ImageFileReader, but it crashes with the following message: terminate called after throwing an instance of ‘itk::ExceptionObject’ what(): /home/mor…

---

## [Sad state of the dashboard](https://discourse.itk.org/t/sad-state-of-the-dashboard/793)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 16\
**Last updated:** [March 29, 2018, 9:06pm UTC](https://discourse.itk.org/t/sad-state-of-the-dashboard/793 "2018-03-29T21:06:46Z")

</div>

Hi all, Almost all the Mac builds on the dashboard are red, and have been for weeks now. Mine have been red since 2018-03-08. They used to build. Isn’t the idea that if one commits something one must watch the dashbo…

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

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