# Latest

**URL:** https://discourse.itk.org/latest.md?page=102

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

**Page:** 103

---

## [Where is the documentation for uploaded test data?](https://discourse.itk.org/t/where-is-the-documentation-for-uploaded-test-data/877)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 9\
**Last updated:** [May 2, 2018, 4:41pm UTC](https://discourse.itk.org/t/where-is-the-documentation-for-uploaded-test-data/877 "2018-05-02T16:41:49Z")

</div>

I have encounter a lot of old documentation that indicate that new baselines should be automatically uploaded: https://www.google.com/search?client=safari&rls=en&q=ITK+upload+test+data&ie=UTF-8&oe=UTF-8 I believe thi…

---

## [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…

---

## [Spline smoothing of a 3D image or equivalent ?](https://discourse.itk.org/t/spline-smoothing-of-a-3d-image-or-equivalent/889)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 0\
**Last updated:** [May 2, 2018, 9:12am UTC](https://discourse.itk.org/t/spline-smoothing-of-a-3d-image-or-equivalent/889 "2018-05-02T09:12:01Z")

</div>

Dear All, I have trouble finding a image smoothing filter that uses splines. There are several classes using spline, but no smoothing! Do you have any idea on how I could get this to work ? Thanks, Yann

---

## [Can I analyze the thickness of a stl model, and then showed with a color map.](https://discourse.itk.org/t/can-i-analyze-the-thickness-of-a-stl-model-and-then-showed-with-a-color-map/880)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.itk.org/u/timeanddoctor)\
**Replies:** 1\
**Last updated:** [May 1, 2018, 4:10pm UTC](https://discourse.itk.org/t/can-i-analyze-the-thickness-of-a-stl-model-and-then-showed-with-a-color-map/880 "2018-05-01T16:10:05Z")

</div>

Can I analyze the thickness of a stl model, and then showed with a color map. The distance between the two sides of an object. \[2018-04-30\_215013\]

---

## [Copy output of nested filter to output of outer filter](https://discourse.itk.org/t/copy-output-of-nested-filter-to-output-of-outer-filter/846)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 4\
**Last updated:** [May 1, 2018, 12:50pm UTC](https://discourse.itk.org/t/copy-output-of-nested-filter-to-output-of-outer-filter/846 "2018-05-01T12:50:38Z")

</div>

Hello, i want to copy the output of a nested filter to outer filter. The outer filter has the OutputImagePointer set (w.r. t. region, size, etc.) and I want to replace the output with the result from the nested filter. …

---

## [ITK 5.0 Alpha 1: Modern C++](https://discourse.itk.org/t/itk-5-0-alpha-1-modern-c/843)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 6\
**Last updated:** [April 30, 2018, 1:16pm UTC](https://discourse.itk.org/t/itk-5-0-alpha-1-modern-c/843 "2018-04-30T13:16:16Z")

</div>

ITK 5.0 Alpha 1 is ready for testing! Source code (zip) Source code (tar.gz) ITK 5.0 brings dramatic improvements to ITK’s API and performance. At the same time, there are minimal changes that break backwards compatib…

---

## [Problem in parsing ITK\_LIBRARIES](https://discourse.itk.org/t/problem-in-parsing-itk-libraries/874)

<div class="topic-metadata">

**Author:** [@mabou](https://discourse.itk.org/u/mabou)\
**Replies:** 7\
**Last updated:** [April 27, 2018, 3:14pm UTC](https://discourse.itk.org/t/problem-in-parsing-itk-libraries/874 "2018-04-27T15:14:59Z")

</div>

I am trying to run a simple HelloWorld program, and make an inclusion of header file of ITK: itkImage.h. Running cmake …/src to build the Makefile is okay. But running make all gives this error: /src/HelloWorldTwo.cpp:1…

---

## [sitk.ConnectedComponent](https://discourse.itk.org/t/sitk-connectedcomponent/876)

<div class="topic-metadata">

**Author:** [@Giuseppe\_Amatulli](https://discourse.itk.org/u/Giuseppe_Amatulli)\
**Replies:** 1\
**Last updated:** [April 27, 2018, 3:32pm UTC](https://discourse.itk.org/t/sitk-connectedcomponent/876 "2018-04-27T15:32:25Z")

</div>

Hi , I had a scripting procedure that was using SimpleITK 0.10.0 marker\_img = sitk.ConnectedComponent(peak, fullyConnected=True) , where peak is an image 0 , 1. The sitk.ConnectedComponent was run correctly with no e…

---

## [ResampleImageFilter non-determinism with threading](https://discourse.itk.org/t/resampleimagefilter-non-determinism-with-threading/862)

<div class="topic-metadata">

**Author:** [@Simon](https://discourse.itk.org/u/Simon)\
**Replies:** 35\
**Last updated:** [April 26, 2018, 6:10pm UTC](https://discourse.itk.org/t/resampleimagefilter-non-determinism-with-threading/862 "2018-04-26T18:10:01Z")

</div>

I’m seeing some non-deterministic results in ResampleImageFilter on with different thread counts. I’m assuming this is unexpected behaviour, but thought I’d ask here first if there are known issues it might relate to be…

---

## [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…

---

## [can't iterate over simple image](https://discourse.itk.org/t/cant-iterate-over-simple-image/865)

<div class="topic-metadata">

**Author:** [@antoine.letouzey](https://discourse.itk.org/u/antoine.letouzey)\
**Replies:** 3\
**Last updated:** [April 24, 2018, 1:53pm UTC](https://discourse.itk.org/t/cant-iterate-over-simple-image/865 "2018-04-24T13:53:57Z")

</div>

I have a 3d boolean image and would like to compute the number of non zero voxels. I wrote this simple code that is supposed to iterate over the whole image and update a counter variable. using BoolImageType = itk::Ima…

---

## [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…

---

## [Suggestion for how making GUI for itk](https://discourse.itk.org/t/suggestion-for-how-making-gui-for-itk/858)

<div class="topic-metadata">

**Author:** [@rasoul](https://discourse.itk.org/u/rasoul)\
**Replies:** 4\
**Last updated:** [April 20, 2018, 1:22pm UTC](https://discourse.itk.org/t/suggestion-for-how-making-gui-for-itk/858 "2018-04-20T13:22:32Z")

</div>

Hi every one I wanna make a GUI for itk and vtk libraries. Like what 3d\_ slicer provides us, but my own one. What do you suggest me?

---

## [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

---

## [\[solved\] Padding without extending image size](https://discourse.itk.org/t/solved-padding-without-extending-image-size/847)

<div class="topic-metadata">

**Author:** [@antoine.letouzey](https://discourse.itk.org/u/antoine.letouzey)\
**Replies:** 6\
**Last updated:** [April 18, 2018, 2:18pm UTC](https://discourse.itk.org/t/solved-padding-without-extending-image-size/847 "2018-04-18T14:18:14Z")

</div>

Hi, I’m trying to add an uniform (in color and size) margin to a 3D image and the only filter that always comes up in google is itk::ConstantPadImageFilter. https://itk.org/Doxygen/html/classitk\_1\_1ConstantPadImageFilte…

---

## [Disable OutputWindow by exception](https://discourse.itk.org/t/disable-outputwindow-by-exception/842)

<div class="topic-metadata">

**Author:** [@HsuehWen](https://discourse.itk.org/u/HsuehWen)\
**Replies:** 1\
**Last updated:** [April 17, 2018, 1:27pm UTC](https://discourse.itk.org/t/disable-outputwindow-by-exception/842 "2018-04-17T13:27:12Z")

</div>

Hi all, I’m using ITK for registration. There are cases that two images basically can’t be registered, then ITK will output error message on an output window like \[Exception\] Is there a way to disable this window? I d…

---

## [Problems with Python 3](https://discourse.itk.org/t/problems-with-python-3/827)

<div class="topic-metadata">

**Author:** [@bonisthegreat](https://discourse.itk.org/u/bonisthegreat)\
**Replies:** 5\
**Last updated:** [April 14, 2018, 8:22am UTC](https://discourse.itk.org/t/problems-with-python-3/827 "2018-04-14T08:22:31Z")

</div>

Hello there! I just updated my itk version from the latest available for python3.4 (https://pypi.python.org/pypi/itk) but Im not being able to import it. Has the import name changed? Thanks in advanced!

---

## [Image Masking](https://discourse.itk.org/t/image-masking/834)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 0\
**Last updated:** [April 12, 2018, 3:54pm UTC](https://discourse.itk.org/t/image-masking/834 "2018-04-12T15:54:34Z")

</div>

I want to mask an image so that i get only the part with pixel value and the background will be cropped. \[axparsvascularisjugularforamen00%2046\] Like in this image, I want a masked image so that it will be something li…

---

## [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…

---

## [How pixel position changes after sampling ?](https://discourse.itk.org/t/how-pixel-position-changes-after-sampling/829)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 3\
**Last updated:** [April 6, 2018, 10:22pm UTC](https://discourse.itk.org/t/how-pixel-position-changes-after-sampling/829 "2018-04-06T22:22:47Z")

</div>

1m Lets suppose, I have a 2D image of spacing value 1.0 with dimension of 512x546. for this image i have a pixel value of 255 in position (218,141) after doing a sampling on the 2D image with spacing 1.5 , the dimensi…

---

## [Resample Image](https://discourse.itk.org/t/resample-image/820)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 2\
**Last updated:** [April 6, 2018, 5:38pm UTC](https://discourse.itk.org/t/resample-image/820 "2018-04-06T17:38:38Z")

</div>

I have a data set of 2d images. I want to resample it with given space value. like spacing with 1.2 or 1.5. Most of the itk resampling examples are based on given image size. Which example works like that?

---

## [sitk.ComposeImageFilter with list of images (python)](https://discourse.itk.org/t/sitk-composeimagefilter-with-list-of-images-python/824)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 5\
**Last updated:** [April 6, 2018, 1:12pm UTC](https://discourse.itk.org/t/sitk-composeimagefilter-with-list-of-images-python/824 "2018-04-06T13:12:27Z")

</div>

Hello! I am trying to use the ComposeImageFilter to combine three grayscale volumes into an RGB volume. All my images have the same metadata in regards of origin, spacing, dimensions,etc… This is what I am doing: def …

---

## [Runtime Error trying to use the LabelMapToBinaryImageFilter in SimpleITK](https://discourse.itk.org/t/runtime-error-trying-to-use-the-labelmaptobinaryimagefilter-in-simpleitk/828)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 4\
**Last updated:** [April 6, 2018, 1:02am UTC](https://discourse.itk.org/t/runtime-error-trying-to-use-the-labelmaptobinaryimagefilter-in-simpleitk/828 "2018-04-06T01:02:15Z")

</div>

Hello, I am trying to combine multiple images (same spacing, dimensions, etc.) Each image contains a 1 for object and 0 for background and these are 3D volumes. this is my code: def labels\_to\_binary\_image(image\_list):…

---

## [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…

---

## [ImageRegionIterator object in python](https://discourse.itk.org/t/imageregioniterator-object-in-python/818)

<div class="topic-metadata">

**Author:** [@lwyyy](https://discourse.itk.org/u/lwyyy)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 9:52am UTC](https://discourse.itk.org/t/imageregioniterator-object-in-python/818 "2018-04-04T09:52:05Z")

</div>

Hi, I installed ITK on mac python 2.7 using command “python -m pip install itk”, and when I wanted to create an ImageRegionIterator object, it had an error – “AttributeError: ‘LazyITKModule’ object has no attribute ‘Ima…

[Previous page](https://discourse.itk.org/latest.md?page=101)

[Next page](https://discourse.itk.org/latest.md?page=103)
