# Engineering

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

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

**Page:** 19

---

## [A shape class for ShapedImageNeighborhoodRange and ShapedNeighborhoodIterator](https://discourse.itk.org/t/a-shape-class-for-shapedimageneighborhoodrange-and-shapedneighborhooditerator/924)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 22\
**Last updated:** [October 7, 2018, 6:48pm UTC](https://discourse.itk.org/t/a-shape-class-for-shapedimageneighborhoodrange-and-shapedneighborhooditerator/924 "2018-10-07T18:48:28Z")

</div>

Hereby I would like to share my ideas behind the proposed patch ENH: Added class to create offsets for a hyperrectangular neighborhood shape Both the new ShapedImageNeighborhoodRange (from namespace itk::Experimental) a…

---

## [Python Wrapping build error](https://discourse.itk.org/t/python-wrapping-build-error/1335)

<div class="topic-metadata">

**Author:** [@melrobin](https://discourse.itk.org/u/melrobin)\
**Replies:** 4\
**Last updated:** [October 6, 2018, 9:39pm UTC](https://discourse.itk.org/t/python-wrapping-build-error/1335 "2018-10-06T21:39:16Z")

</div>

I can build ITK from development sources fine, but when I turn on Python wrapping I get a few errors of the sort: \[ 29%\] Generating …/…/itkLevelSetNode.xml In file included from /home/melrobin/packages/ITK/build/Wrappi…

---

## [Multi-threader refactoring](https://discourse.itk.org/t/multi-threader-refactoring/840)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 33\
**Last updated:** [October 5, 2018, 11:11am UTC](https://discourse.itk.org/t/multi-threader-refactoring/840 "2018-10-05T11:11:22Z")

</div>

Threading infrastructure refactoring is entering final stages. Feedback is welcome in this patch and the few patches before which are part of the same branch. Some outstanding TODOs: remove threadId parameter for Para…

---

## [Correct usage of EXPORT macros](https://discourse.itk.org/t/correct-usage-of-export-macros/1304)

<div class="topic-metadata">

**Author:** [@vpoughon](https://discourse.itk.org/u/vpoughon)\
**Replies:** 4\
**Last updated:** [October 2, 2018, 8:09pm UTC](https://discourse.itk.org/t/correct-usage-of-export-macros/1304 "2018-10-02T20:09:28Z")

</div>

In OTB we are looking at several things related to class EXPORT macros, inclusing removing ITK\_EXPORT, building with extern templates and using C++14’s \[\[deprecated\]\] attributes for classes, etc. As you may know we are a…

---

## [VNL is not C++17 compatible](https://discourse.itk.org/t/vnl-is-not-c-17-compatible/1296)

<div class="topic-metadata">

**Author:** [@spinicist](https://discourse.itk.org/u/spinicist)\
**Replies:** 11\
**Last updated:** [October 1, 2018, 1:33pm UTC](https://discourse.itk.org/t/vnl-is-not-c-17-compatible/1296 "2018-10-01T13:33:21Z")

</div>

Hello, I’ve just tried building ITK master with C++17 enabled with Apple’s latest compiler Apple LLVM version 10.0.0 (clang-1000.11.45.2) and I get the following error: In file included from ../Modules/ThirdParty/VNL/s…

---

## [vnl\_matrix\_fixed build errors](https://discourse.itk.org/t/vnl-matrix-fixed-build-errors/1245)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 13\
**Last updated:** [September 28, 2018, 6:05pm UTC](https://discourse.itk.org/t/vnl-matrix-fixed-build-errors/1245 "2018-09-28T18:05:15Z")

</div>

My colleague @denis.p.shamonin and I observed link errors on an application linking to ITK, latest commit from the master branch: Merge topic 'ComputeJacobianPositionAsFixedType' · Kitware/ITK@8e82137 · GitHub Visual C+…

---

## [The segmentation index in ITK](https://discourse.itk.org/t/the-segmentation-index-in-itk/1306)

<div class="topic-metadata">

**Author:** [@hothao](https://discourse.itk.org/u/hothao)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 11:53am UTC](https://discourse.itk.org/t/the-segmentation-index-in-itk/1306 "2018-09-27T11:53:06Z")

</div>

Hello all, I’m a beginner with ITK. and I am researching on segmentation. I tested the ITK’s examples on MRI images and had a few questions: How to know the seed index of different materials (white matter, gray matter…

---

## [A few standard macros](https://discourse.itk.org/t/a-few-standard-macros/1299)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 6\
**Last updated:** [September 26, 2018, 3:25pm UTC](https://discourse.itk.org/t/a-few-standard-macros/1299 "2018-09-26T15:25:17Z")

</div>

I propose we introduce a few standard macros to be used in most image filters. These macros would define some relatively standard types commonly used in filters, such as ImageType, PixelType, ImageDimension, Pointer, Con…

---

## [Compilers that do not support bool are not supported](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237)

<div class="topic-metadata">

**Author:** [@Tom\_Hampshire](https://discourse.itk.org/u/Tom_Hampshire)\
**Replies:** 33\
**Last updated:** [September 20, 2018, 1:49pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237 "2018-09-20T13:49:41Z")

</div>

I am really struggling to compile ITK v4.12.x or v4.13.x on Windows. I have had no issues with Linux. I have tried using the releases v4.12.2 v4.12.3 v4.13.0 and v4.13.1, along with the latest version of the Visual S…

---

## [Threading in ITK](https://discourse.itk.org/t/threading-in-itk/782)

<div class="topic-metadata">

**Author:** [@HsuehWen](https://discourse.itk.org/u/HsuehWen)\
**Replies:** 16\
**Last updated:** [September 19, 2018, 1:20pm UTC](https://discourse.itk.org/t/threading-in-itk/782 "2018-09-19T13:20:45Z")

</div>

Hi, I’m using ITK registration on a 28core, 56 processor machine with 2 scenarios. (1) execute the program 24 times with different command (2) single program, but use 24 threads do mimic the process of scenario (1) I…

---

## [Visual C++ 2015 Release build hangs forever, trying to compile itk::Math::Floor](https://discourse.itk.org/t/visual-c-2015-release-build-hangs-forever-trying-to-compile-itk-math-floor/610)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 9\
**Last updated:** [September 18, 2018, 4:54pm UTC](https://discourse.itk.org/t/visual-c-2015-release-build-hangs-forever-trying-to-compile-itk-math-floor/610 "2018-09-18T16:54:07Z")

</div>

One of my colleagues encountered a Visual C++ 2015 compiler bug which causes the compiler to hang forever when it tries to instantiate BSplineInterpolationWeightFunction with TCoordRep = float and VSplineOrder = 1. Is it…

---

## [VTK master + ITK master = HDF5 duplicate symbol link errors](https://discourse.itk.org/t/vtk-master-itk-master-hdf5-duplicate-symbol-link-errors/1290)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 8\
**Last updated:** [September 17, 2018, 2:01am UTC](https://discourse.itk.org/t/vtk-master-itk-master-hdf5-duplicate-symbol-link-errors/1290 "2018-09-17T02:01:09Z")

</div>

Hi all, I’ve just tried building current VTK master + current ITK master then building my own app against them. The result is about 150 link errors, all along the lines of: duplicate symbol \_H5\_libinit\_g in: /path…

---

## [compile itk (VTKGlue ON) with vtk from paraview](https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289)

<div class="topic-metadata">

**Author:** [@grothausmann.roman](https://discourse.itk.org/u/grothausmann.roman)\
**Replies:** 2\
**Last updated:** [September 14, 2018, 6:14am UTC](https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289 "2018-09-14T06:14:01Z")

</div>

Follwoing this old mailing list thread I have tried to create dockerfiles (DF) for the creation of docker images that compile ITK with vtk from paraview for VTKGlue that I need for a PV plugin (ShapeMI demo). The DF for …

---

## [ImageIO from string/buffer](https://discourse.itk.org/t/imageio-from-string-buffer/1261)

<div class="topic-metadata">

**Author:** [@Simon](https://discourse.itk.org/u/Simon)\
**Replies:** 4\
**Last updated:** [September 10, 2018, 4:24pm UTC](https://discourse.itk.org/t/imageio-from-string-buffer/1261 "2018-09-10T16:24:25Z")

</div>

I have an NRRD image that is embedded inside another file as a string. Of course I can extract it, write to a file, then use the usual ImageFileReader interface, but that’s wasteful as I already have the object in mem…

---

## [Missing nightly Python packages for Windows](https://discourse.itk.org/t/missing-nightly-python-packages-for-windows/1116)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 11\
**Last updated:** [September 7, 2018, 8:06pm UTC](https://discourse.itk.org/t/missing-nightly-python-packages-for-windows/1116 "2018-09-07T20:06:25Z")

</div>

Hi, The nightly Python packages are no longer available for Windows on Github’s releases page. Is it a known issue and can we expect them back anytime soon? If not, is there any chance to access the last Windows nightl…

---

## [New Functor Filter with lambda support](https://discourse.itk.org/t/new-functor-filter-with-lambda-support/899)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 5\
**Last updated:** [September 5, 2018, 11:02am UTC](https://discourse.itk.org/t/new-functor-filter-with-lambda-support/899 "2018-09-05T11:02:40Z")

</div>

This is in regards to the following topic: http://review.source.kitware.com/#/c/23352/ This patch introduces the UnaryGeneratorImageFilter BinaryGeneratorImageFilters, as replacements for the UnaryFunctorImageFilter and…

---

## [Is it possible compile ITK with C++ Builder 10.2.3?](https://discourse.itk.org/t/is-it-possible-compile-itk-with-c-builder-10-2-3/1253)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 1\
**Last updated:** [September 4, 2018, 9:33pm UTC](https://discourse.itk.org/t/is-it-possible-compile-itk-with-c-builder-10-2-3/1253 "2018-09-04T21:33:21Z")

</div>

Hi. Is it possible compile ITK with C++ Builder 10.2.3? Is there any manner to do that? Iam trying but it falls. I know C++ Builder but not Visual Studio. Thanks.

---

## [Source of DEBUG define](https://discourse.itk.org/t/source-of-debug-define/1236)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 3\
**Last updated:** [September 4, 2018, 2:07pm UTC](https://discourse.itk.org/t/source-of-debug-define/1236 "2018-09-04T14:07:21Z")

</div>

I found the source of DEBUG define which break so many (all?) debug builds. It comes from here and here. I don’t know why HDF5 people decided to publicly export DEBUG define. NDEBUG is redundant as it is defined by the c…

---

## [DivideImageFilter with a constant?](https://discourse.itk.org/t/divideimagefilter-with-a-constant/1241)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 9\
**Last updated:** [August 31, 2018, 6:38pm UTC](https://discourse.itk.org/t/divideimagefilter-with-a-constant/1241 "2018-08-31T18:38:38Z")

</div>

The documentation for this deprecated filter: https://itk.org/Doxygen/html/classitk\_1\_1DivideByConstantImageFilter.html Says DivideImageFilter can do the same thing, however I can’t find any detail on how, is it possib…

---

## [Similarity3DTransform like transform with 3 independent scales](https://discourse.itk.org/t/similarity3dtransform-like-transform-with-3-independent-scales/1171)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 8\
**Last updated:** [August 23, 2018, 4:16pm UTC](https://discourse.itk.org/t/similarity3dtransform-like-transform-with-3-independent-scales/1171 "2018-08-23T16:16:57Z")

</div>

A recent publication comparing registration methods (https://doi.org/10.1016/j.neuroimage.2018.03.025) come up with the MINC based bestlinreg from CIVET2.1 as being the most robust and reliable. There are obviously many …

---

## [Dealing with image blocks](https://discourse.itk.org/t/dealing-with-image-blocks/1210)

<div class="topic-metadata">

**Author:** [@tim-evain](https://discourse.itk.org/u/tim-evain)\
**Replies:** 5\
**Last updated:** [August 20, 2018, 1:55pm UTC](https://discourse.itk.org/t/dealing-with-image-blocks/1210 "2018-08-20T13:55:06Z")

</div>

Hello folks, Recently I had to make some algorithms (C++) that deal with modifying image subregions, the sort that would have been done in a couple of lines with the easy switch to numpy and array slicing capacities in …

---

## [Use of itkEventMacroDeclaration and itkEventMacroDefinition](https://discourse.itk.org/t/use-of-itkeventmacrodeclaration-and-itkeventmacrodefinition/1204)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 0\
**Last updated:** [August 16, 2018, 7:14am UTC](https://discourse.itk.org/t/use-of-itkeventmacrodeclaration-and-itkeventmacrodefinition/1204 "2018-08-16T07:14:14Z")

</div>

Hi, I am a little bit confused about the description of the use of itkEventMacroDeclaration and itkEventMacroDefinition: // This macro duplicates some of the declaration and definition // macro code. The purpose is to …

---

## [Build INSTALL with Visual Studio](https://discourse.itk.org/t/build-install-with-visual-studio/1194)

<div class="topic-metadata">

**Author:** [@Gib](https://discourse.itk.org/u/Gib)\
**Replies:** 2\
**Last updated:** [August 14, 2018, 9:12pm UTC](https://discourse.itk.org/t/build-install-with-visual-studio/1194 "2018-08-14T21:12:35Z")

</div>

I use cmake to create the VS project for building ITK. Until now I’ve been only building the Release libraries, now I want to build and use the Debug libraries as well. It took me a while to realise that when I Build I…

---

## [\[Resolved\] How to create a template from ConvertToVTK example?](https://discourse.itk.org/t/resolved-how-to-create-a-template-from-converttovtk-example/1198)

<div class="topic-metadata">

**Author:** [@Athius](https://discourse.itk.org/u/Athius)\
**Replies:** 3\
**Last updated:** [August 14, 2018, 6:04pm UTC](https://discourse.itk.org/t/resolved-how-to-create-a-template-from-converttovtk-example/1198 "2018-08-14T18:04:14Z")

</div>

Hello everyone, I work on Mac OS X 10.13.6 with Clang 9.1 (Apple latest version) and ITK v 4.13.0. I try to “templatize” the example ConvertToVTK. To do this, I just comment the first typedef and add some template def…

---

## [Updating ITK's HDF5](https://discourse.itk.org/t/updating-itks-hdf5/472)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 50\
**Last updated:** [August 10, 2018, 6:37pm UTC](https://discourse.itk.org/t/updating-itks-hdf5/472 "2018-08-10T18:37:47Z")

</div>

Hi all, ITK master includes HDF5 1.8.17, and 1.8.20 was released today so I thought I’d try to update it. But the current scripts seem to be out of date. HDF switched from svn to git in late 2016 or early 2017, ie sin…

---

## [Bug in UpdateFromUpstream.sh](https://discourse.itk.org/t/bug-in-updatefromupstream-sh/1191)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 6:36pm UTC](https://discourse.itk.org/t/bug-in-updatefromupstream-sh/1191 "2018-08-10T18:36:04Z")

</div>

Not sure exactly where the bug lies, but I just triggered a bug trying to use UpdateFromUpstream.sh. Essentially, it seems to be triggered if your CWD when you execute the script has a symlink as part of the path, in my…

---

## [Review module fate...](https://discourse.itk.org/t/review-module-fate/1186)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 1:46pm UTC](https://discourse.itk.org/t/review-module-fate/1186 "2018-08-07T13:46:27Z")

</div>

Before ITKv5 comes out we should figure out what to do with the Review module, and the classes in it. LevelSets - There are a group of level set filters in the Review directory for multiphase and ChanAndVese live-sets…

---

## [clang -Wunreachable-code-break and -Wself-assign-field](https://discourse.itk.org/t/clang-wunreachable-code-break-and-wself-assign-field/1181)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.itk.org/u/seanm)\
**Replies:** 5\
**Last updated:** [August 6, 2018, 5:47pm UTC](https://discourse.itk.org/t/clang-wunreachable-code-break-and-wself-assign-field/1181 "2018-08-06T17:47:28Z")

</div>

Hi all, Two warnings on my bots I’m not sure what you all prefer to do about: warning: ‘break’ will never be executed \[-Wunreachable-code-break\] case itk::ImageIOBase::DOUBLE: std::cerr \<\< "Hashing is not s…

---

## [GTest timeouts](https://discourse.itk.org/t/gtest-timeouts/1160)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 5\
**Last updated:** [August 2, 2018, 3:34pm UTC](https://discourse.itk.org/t/gtest-timeouts/1160 "2018-08-02T15:34:29Z")

</div>

I just updated ninja version 1.5.3 -\> 1.8.2 on dash5 (osx build machine for continuous integration testing). As the version was so old that might just be the reason for those frequent GTest timeouts. Let’s wait and see.

---

## [Smoothing with a mask (in general, and specifically applied to registration)](https://discourse.itk.org/t/smoothing-with-a-mask-in-general-and-specifically-applied-to-registration/1164)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 3\
**Last updated:** [July 31, 2018, 8:10pm UTC](https://discourse.itk.org/t/smoothing-with-a-mask-in-general-and-specifically-applied-to-registration/1164 "2018-07-31T20:10:14Z")

</div>

There is an interesting approximation for smoothing using a mask: s(X with mask) = s(Mask\*X)/s(Mask) For smoothing, particularly in registration pipelines, this can reduce the computation needed, and focus registration…

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

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