# Engineering

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

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

**Page:** 20

---

## [release-4.13 branch for ITK 4 bugfix patches](https://discourse.itk.org/t/release-4-13-branch-for-itk-4-bugfix-patches/1166)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [July 31, 2018, 2:48am UTC](https://discourse.itk.org/t/release-4-13-branch-for-itk-4-bugfix-patches/1166 "2018-07-31T02:48:34Z")

</div>

Hi folks, We now have a release-4.13 maintenance Git branch for ITK 4. Soon, the release branch will point to ITK 5. While we will be focusing our efforts on ITK 5, critical bugfixes can be merged into the release-4.…

---

## [Modern C++ and ITK, a primer?](https://discourse.itk.org/t/modern-c-and-itk-a-primer/1165)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 1\
**Last updated:** [July 30, 2018, 10:43pm UTC](https://discourse.itk.org/t/modern-c-and-itk-a-primer/1165 "2018-07-30T22:43:35Z")

</div>

Coming from the C world (and C on embedded systems) ITK uses a ton of C++ voodoo to achieve what it does. Can anyone suggest a good modern primer to go about learning the modern C++ that ITK uses?

---

## [VXL update](https://discourse.itk.org/t/vxl-update/1157)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [July 27, 2018, 2:02pm UTC](https://discourse.itk.org/t/vxl-update/1157 "2018-07-27T14:02:39Z")

</div>

This PR is trying to fix the CMake warning on @seanm’s nightly build machine. Does anyone besides @hjmjohnson have write permission for vxl?

---

## [Adding voxel-space sigma specification to itk::SmoothingRecursiveYvvGaussianImageFilter](https://discourse.itk.org/t/adding-voxel-space-sigma-specification-to-itk-smoothingrecursiveyvvgaussianimagefilter/1153)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 0\
**Last updated:** [July 25, 2018, 8:08pm UTC](https://discourse.itk.org/t/adding-voxel-space-sigma-specification-to-itk-smoothingrecursiveyvvgaussianimagefilter/1153 "2018-07-25T20:08:30Z")

</div>

Rather than diverting NaN for DiscreteGaussian thread any more, I’d like to bring up a feature I’m adding to the RecursiveYvv filter. I’ve got a draft available here https://github.com/InsightSoftwareConsortium/Smoothin…

---

## [Complete Failure (NaN) for DiscreteGaussianImageFilter with large sigma and large images](https://discourse.itk.org/t/complete-failure-nan-for-discretegaussianimagefilter-with-large-sigma-and-large-images/1127)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 24\
**Last updated:** [July 25, 2018, 2:17pm UTC](https://discourse.itk.org/t/complete-failure-nan-for-discretegaussianimagefilter-with-large-sigma-and-large-images/1127 "2018-07-25T14:17:55Z")

</div>

I’m having issues with a complete failure of DiscreteGaussianImageFilter as implemented in SmoothImage in ANTs as well as its internal use in the antsRegistration pipeline. For some combinations of large resolution/larg…

---

## [MattesMutualInformationImageToImageMetricv4 sampling heuristics](https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-sampling-heuristics/1140)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 6\
**Last updated:** [July 23, 2018, 2:18pm UTC](https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-sampling-heuristics/1140 "2018-07-23T14:18:00Z")

</div>

As has been discussed on the ANTs issue tracker https://github.com/ANTsX/ANTs/issues/543, the existing heuristics for the MI overlap are not very good. Right now, its based on a ratio of points at https://github.com/hin…

---

## [ParallelizeImageRegion with multiple images?](https://discourse.itk.org/t/parallelizeimageregion-with-multiple-images/1138)

<div class="topic-metadata">

**Author:** [@spinicist](https://discourse.itk.org/u/spinicist)\
**Replies:** 2\
**Last updated:** [July 20, 2018, 8:27pm UTC](https://discourse.itk.org/t/parallelizeimageregion-with-multiple-images/1138 "2018-07-20T20:27:12Z")

</div>

Hello, I am updating my code to ITK 5.0. In particular I’d like to take advantage of the parallelization improvements. However, the examples I’ve seen so far, e.g. https://itk.org/ITKExamples/src/Core/Common/UseParallel…

---

## [How to specify CMake cache variable CMAKE INSTALL PREFIX in CMakeLists.txt](https://discourse.itk.org/t/how-to-specify-cmake-cache-variable-cmake-install-prefix-in-cmakelists-txt/1135)

<div class="topic-metadata">

**Author:** [@Neerajan\_S](https://discourse.itk.org/u/Neerajan_S)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 2:12pm UTC](https://discourse.itk.org/t/how-to-specify-cmake-cache-variable-cmake-install-prefix-in-cmakelists-txt/1135 "2018-07-20T14:12:38Z")

</div>

How to specify CMake cache variable CMAKE INSTALL PREFIX so that I dont have to specify the ITK build directory whenever I am building a new ITK source directory

---

## [IF3IF3 and IF2IF2](https://discourse.itk.org/t/if3if3-and-if2if2/1126)

<div class="topic-metadata">

**Author:** [@Jianxu\_Chen](https://discourse.itk.org/u/Jianxu_Chen)\
**Replies:** 4\
**Last updated:** [July 19, 2018, 2:51pm UTC](https://discourse.itk.org/t/if3if3-and-if2if2/1126 "2018-07-19T14:51:03Z")

</div>

I am using ITK in Python. I have a general question in dealing with 3D images. Most of the examples in https://itk.org/ITKExamples/src/index.html are for 2D images. When I apply the code to 3D images, I got TypeError fr…

---

## [ITKModuleTemplate and external modules for use with python](https://discourse.itk.org/t/itkmoduletemplate-and-external-modules-for-use-with-python/1113)

<div class="topic-metadata">

**Author:** [@darrent1974](https://discourse.itk.org/u/darrent1974)\
**Replies:** 3\
**Last updated:** [July 17, 2018, 5:22pm UTC](https://discourse.itk.org/t/itkmoduletemplate-and-external-modules-for-use-with-python/1113 "2018-07-17T17:22:46Z")

</div>

Hi All, Sorry if I’ve cross-posted, but I discovered the discourse site after posting to the old mailing list. I’m revisiting making my own external ITK module (for use in Python) after an initial attempt a while back.…

---

## [ITK External Module GitHub builds for 4.X and 5.X](https://discourse.itk.org/t/itk-external-module-github-builds-for-4-x-and-5-x/900)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 4\
**Last updated:** [July 16, 2018, 6:09pm UTC](https://discourse.itk.org/t/itk-external-module-github-builds-for-4-x-and-5-x/900 "2018-07-16T18:09:45Z")

</div>

As described in the ITKModuleTemplate README, it is possible to build and develop ITK modules on GitHub. The ITKModuleTemplate creates a configuration with continuous integration testing to build and test the module on L…

---

## [extern templates to reduce build time](https://discourse.itk.org/t/extern-templates-to-reduce-build-time/1105)

<div class="topic-metadata">

**Author:** [@vpoughon](https://discourse.itk.org/u/vpoughon)\
**Replies:** 3\
**Last updated:** [July 13, 2018, 3:26pm UTC](https://discourse.itk.org/t/extern-templates-to-reduce-build-time/1105 "2018-07-13T15:26:59Z")

</div>

Hello, In OTB (which is heavily based on ITK) we have been looking at the possibility of introducing explicit instantiation of common template classes in the dynamic libraries we build, together with “extern template” d…

---

## [Numpy array from itk image](https://discourse.itk.org/t/numpy-array-from-itk-image/1097)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 2\
**Last updated:** [July 9, 2018, 2:24pm UTC](https://discourse.itk.org/t/numpy-array-from-itk-image/1097 "2018-07-09T14:24:37Z")

</div>

With the latest ITK python packages, I cannot get a numpy array from an itk::Image. I have tried with version 5.0a02 and the nightly packages, I have \>\>\> import itk \>\>\> img = itk.Image\[itk.F,3\].New() \>\>\> region = img…

---

## [How to add an image to another one "in-place" (image1 += image2)?](https://discourse.itk.org/t/how-to-add-an-image-to-another-one-in-place-image1-image2/1090)

<div class="topic-metadata">

**Author:** [@Niels\_Dekker](https://discourse.itk.org/u/Niels_Dekker)\
**Replies:** 3\
**Last updated:** [July 8, 2018, 12:25pm UTC](https://discourse.itk.org/t/how-to-add-an-image-to-another-one-in-place-image1-image2/1090 "2018-07-08T12:25:27Z")

</div>

It was very nice to meet you @ https://wbir2018.nl here in Leiden, @matt.mccormick, @dzenanz, @jhlegarreta :grinning: ! Now I have another technical question: N4BiasFieldCorrectionImageFilter::UpdateBiasFieldEstimate cu…

---

## [\[SOLVED\] Writing a transform to file](https://discourse.itk.org/t/solved-writing-a-transform-to-file/1054)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 2\
**Last updated:** [July 2, 2018, 12:37pm UTC](https://discourse.itk.org/t/solved-writing-a-transform-to-file/1054 "2018-07-02T12:37:18Z")

</div>

Hi, I want to write a transform to a file. The file name is “FinalTransform.tfm”. The relevant code snippet is: #include \<itkTransformFileWriter.h\> using TransformFileWriterType = itk::TransformFileWriter; \[...\] auto …

---

## [How do I apply a transform to fiducial seeds from Slicer?](https://discourse.itk.org/t/how-do-i-apply-a-transform-to-fiducial-seeds-from-slicer/1020)

<div class="topic-metadata">

**Author:** [@adjuric](https://discourse.itk.org/u/adjuric)\
**Replies:** 2\
**Last updated:** [June 30, 2018, 7:43am UTC](https://discourse.itk.org/t/how-do-i-apply-a-transform-to-fiducial-seeds-from-slicer/1020 "2018-06-30T07:43:13Z")

</div>

I have a list of fiducial seed points obtained through Slicer which correspond to locations in a reference image. I have registered this reference image with a fixed target image using an affine transform and now wish to…

---

## [\[SOLVED\] .lib file of external module is not build](https://discourse.itk.org/t/solved-lib-file-of-external-module-is-not-build/1039)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 8\
**Last updated:** [June 29, 2018, 8:32am UTC](https://discourse.itk.org/t/solved-lib-file-of-external-module-is-not-build/1039 "2018-06-29T08:32:12Z")

</div>

Hello, when I try to build (ENABLE\_SHARED) an external module the compiling is fine until the TestDriver and the HeaderTest are compiled. They are looking for an itkORA.lib file that is not created in the itk/lib/Debug …

---

## [\[SOLVED\] Building dynamic libraries \*d.dll vs \*.dll](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 3\
**Last updated:** [June 27, 2018, 9:20am UTC](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002 "2018-06-27T09:20:07Z")

</div>

Hello, is there any difference between libraries built with \*d.dll or \*.dll? They are in different folder (Debug/RelWithDebInfo). (Example: ITKCommon-4.13d.dll built in Debug mode, ITKCommon-4.13.dll built in RelWithDe…

---

## [\[SOLVED\] VTK as external module](https://discourse.itk.org/t/solved-vtk-as-external-module/1037)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 5\
**Last updated:** [June 27, 2018, 8:45am UTC](https://discourse.itk.org/t/solved-vtk-as-external-module/1037 "2018-06-27T08:45:13Z")

</div>

Hello, if I want to use the VTK (in this case for function parsing (vtkSmartPointer.h and vtkFunctionParser.h) without any other image interchange. I tried to add VTK .as an external module (using ITKVTK in the itk-mod…

---

## [Does DenseFiniteDifferenceImageFilter perform reinitialization?](https://discourse.itk.org/t/does-densefinitedifferenceimagefilter-perform-reinitialization/1028)

<div class="topic-metadata">

**Author:** [@Besler](https://discourse.itk.org/u/Besler)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 4:46am UTC](https://discourse.itk.org/t/does-densefinitedifferenceimagefilter-perform-reinitialization/1028 "2018-06-26T04:46:59Z")

</div>

Could anyone confirm if DenseFiniteDifferenceImageFilter performs reinitialization on the level set filter? I tried searching the code and mailing list\[1\], but I cannot find where the DenseFiniteDifferenceImageFilter rei…

---

## [Big TIFF problem](https://discourse.itk.org/t/big-tiff-problem/831)

<div class="topic-metadata">

**Author:** [@Gib](https://discourse.itk.org/u/Gib)\
**Replies:** 32\
**Last updated:** [June 21, 2018, 2:05pm UTC](https://discourse.itk.org/t/big-tiff-problem/831 "2018-06-21T14:05:44Z")

</div>

Hi, I want to be able to convert (to 8-bit) and compress large 16-bit grayscale 3D images. I’ve been sent a sample file, 10GB, created by cropping a bigger file using ImageJ. The image, which can be viewed in ImageJ, …

---

## [Issue report: Error in ITKData, object not found](https://discourse.itk.org/t/issue-report-error-in-itkdata-object-not-found/1014)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 4\
**Last updated:** [June 18, 2018, 9:26pm UTC](https://discourse.itk.org/t/issue-report-error-in-itkdata-object-not-found/1014 "2018-06-18T21:26:46Z")

</div>

Any hint how to solve this error in ITKData? Cheers, Pablo \[ 0%\] Generating /path/build/ExternalData/Modules/Filtering/DistanceMap/test/Data/Baseline/itkApproximateSignedDistanceMapImageFilterTest0.mha -- Fetching "h…

---

## [threadId in ParallelizeImageRegion](https://discourse.itk.org/t/threadid-in-parallelizeimageregion/1008)

<div class="topic-metadata">

**Author:** [@cyril.mory](https://discourse.itk.org/u/cyril.mory)\
**Replies:** 9\
**Last updated:** [June 15, 2018, 3:13pm UTC](https://discourse.itk.org/t/threadid-in-parallelizeimageregion/1008 "2018-06-15T15:13:26Z")

</div>

Hi, I’m trying to use itk::MultiThreaderBase and ParallelizeImageRegion for the first time. I managed to get it working for one task, so I’m on the right track. But for another task, I need the threads to be able to acc…

---

## [Tensorflow and ITK](https://discourse.itk.org/t/tensorflow-and-itk/999)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 5\
**Last updated:** [June 14, 2018, 8:39pm UTC](https://discourse.itk.org/t/tensorflow-and-itk/999 "2018-06-14T20:39:16Z")

</div>

Hello, I would like to use trained tensorflow graphs in ITK (for segmentation). Has someone experience using tensorflow in combination with the ITK? Cheers, Gordian

---

## [Gradient of an itk::image of itk::Vector\<float, 3\>](https://discourse.itk.org/t/gradient-of-an-itk-image-of-itk-vector-float-3/996)

<div class="topic-metadata">

**Author:** [@cyril.mory](https://discourse.itk.org/u/cyril.mory)\
**Replies:** 2\
**Last updated:** [June 15, 2018, 11:43am UTC](https://discourse.itk.org/t/gradient-of-an-itk-image-of-itk-vector-float-3/996 "2018-06-15T11:43:07Z")

</div>

Hi, I have a filter that uses the itk::GradientImageFilter for regularization. It is templated over its input image type, and works correctly when that type is itk::Image\<float, n\>. I am trying to make that filter able …

---

## [GCC 8.1](https://discourse.itk.org/t/gcc-8-1/1004)

<div class="topic-metadata">

**Author:** [@hmaarrfk](https://discourse.itk.org/u/hmaarrfk)\
**Replies:** 2\
**Last updated:** [June 14, 2018, 8:49pm UTC](https://discourse.itk.org/t/gcc-8-1/1004 "2018-06-14T20:49:31Z")

</div>

Would it be possible to add a definition to the file ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl\_compiler.h to support GCC 8.1 It was pretty easy to fix manually, and the build seems to have succeeded with my small hac…

---

## [Initializing itk::vector or numeric type with the same command](https://discourse.itk.org/t/initializing-itk-vector-or-numeric-type-with-the-same-command/984)

<div class="topic-metadata">

**Author:** [@cyril.mory](https://discourse.itk.org/u/cyril.mory)\
**Replies:** 7\
**Last updated:** [June 12, 2018, 1:15pm UTC](https://discourse.itk.org/t/initializing-itk-vector-or-numeric-type-with-the-same-command/984 "2018-06-12T13:15:37Z")

</div>

Hello, I would like one of my filters to work with ImageType = itk::Image\<float, 3\> as well as with ImageType = itk::Image\<itk::Vector\<float, 5\>, 3\>. Computation on the pixels only involves operators that are overloaded…

---

## [Build errors : ITK Module Python Wrapping](https://discourse.itk.org/t/build-errors-itk-module-python-wrapping/853)

<div class="topic-metadata">

**Author:** [@T4mmi](https://discourse.itk.org/u/T4mmi)\
**Replies:** 26\
**Last updated:** [June 8, 2018, 1:54pm UTC](https://discourse.itk.org/t/build-errors-itk-module-python-wrapping/853 "2018-06-08T13:54:26Z")

</div>

Hi everyone, Image processing scientist, I’m pretty used to ITK pipelines. However, I’m new to ITK development… Recently converted to Python (really nice for scripting/prototyping) I’m trying to wrap some Insight Journ…

---

## [Frequency Iterators: Iterating over different Fourier Transform layouts and images in the frequency domain](https://discourse.itk.org/t/frequency-iterators-iterating-over-different-fourier-transform-layouts-and-images-in-the-frequency-domain/987)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 0\
**Last updated:** [June 6, 2018, 3:08pm UTC](https://discourse.itk.org/t/frequency-iterators-iterating-over-different-fourier-transform-layouts-and-images-in-the-frequency-domain/987 "2018-06-06T15:08:37Z")

</div>

Initially developed for the external ITKIsotropicWavelets module, I submitted a patch to integrate them into ITK 5 with the aim of re-using them in other modules. Any comment about the implementation is welcome, please j…

---

## [Writing tiff to a memory buffer](https://discourse.itk.org/t/writing-tiff-to-a-memory-buffer/970)

<div class="topic-metadata">

**Author:** [@ocairncross](https://discourse.itk.org/u/ocairncross)\
**Replies:** 0\
**Last updated:** [June 1, 2018, 7:25am UTC](https://discourse.itk.org/t/writing-tiff-to-a-memory-buffer/970 "2018-06-01T07:25:16Z")

</div>

Hello, I’d like to write an image in tiff format to a memory buffer (not a file) so that I can pass it off to a server using libcurl. How do I go about this? Thanks Ollie.

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

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