# Latest

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

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

**Page:** 89

---

## [Casting image](https://discourse.itk.org/t/casting-image/1782)

<div class="topic-metadata">

**Author:** [@Marco\_Festugato](https://discourse.itk.org/u/Marco_Festugato)\
**Replies:** 6\
**Last updated:** [April 13, 2019, 8:09am UTC](https://discourse.itk.org/t/casting-image/1782 "2019-04-13T08:09:24Z")

</div>

Hello, I don’t understand if when I cast an image from one type to another (for example using itk Castimage Filter) , I also change the values of the pixels. Example: if I cast an image from ‘signed short’ (range: 0 to …

---

## [VTK Examples](https://discourse.itk.org/t/vtk-examples/1783)

<div class="topic-metadata">

**Author:** [@bill.lorensen](https://discourse.itk.org/u/bill.lorensen)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 9:29pm UTC](https://discourse.itk.org/t/vtk-examples/1783 "2019-04-12T21:29:47Z")

</div>

Folks, I enjoyed this week’s hack-a-thon celebrating 50,000 commits. It was great to put faces to some of the current contributors. I gave a quick example of the work we have done on the VTK Examples Project. Here are …

---

## [Writing filter with multiple outputs - do I need to provide the number of outputs already in the constructor?](https://discourse.itk.org/t/writing-filter-with-multiple-outputs-do-i-need-to-provide-the-number-of-outputs-already-in-the-constructor/1781)

<div class="topic-metadata">

**Author:** [@hellman](https://discourse.itk.org/u/hellman)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 2:15pm UTC](https://discourse.itk.org/t/writing-filter-with-multiple-outputs-do-i-need-to-provide-the-number-of-outputs-already-in-the-constructor/1781 "2019-04-12T14:15:52Z")

</div>

Hi, I am writing my own ImageSource derived filter that I’d like to output multiple images. The number of outputs, however, is not known already in the constructor, but is a parameter that can be set by a Setter-functio…

---

## [BSpline deformable transformation](https://discourse.itk.org/t/bspline-deformable-transformation/248)

<div class="topic-metadata">

**Author:** [@sadegh.riyahi](https://discourse.itk.org/u/sadegh.riyahi)\
**Replies:** 4\
**Last updated:** [April 11, 2019, 9:01pm UTC](https://discourse.itk.org/t/bspline-deformable-transformation/248 "2019-04-11T21:01:46Z")

</div>

Hello ITK community, I’m trying to understand how BSpline grid is defined over two images during a multi-resolution registration process. I just need the confirmation for the following thoughts: BSpline grids are unif…

---

## [Are sitk Numpy array indices zxy in physical or voxel orientation?](https://discourse.itk.org/t/are-sitk-numpy-array-indices-zxy-in-physical-or-voxel-orientation/1767)

<div class="topic-metadata">

**Author:** [@Roulbac](https://discourse.itk.org/u/Roulbac)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 2:59pm UTC](https://discourse.itk.org/t/are-sitk-numpy-array-indices-zxy-in-physical-or-voxel-orientation/1767 "2019-04-10T14:59:12Z")

</div>

Hi, I need to get axial, coronal and sagital slices for any image. I thought for some time that the indices of numpy arrays from images are in ijk so i needed to do some reorienting though i just came to the conclusion…

---

## [ITK 50,000 Commit Celebration Hackathon](https://discourse.itk.org/t/itk-50-000-commit-celebration-hackathon/1737)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 5\
**Last updated:** [April 10, 2019, 2:02pm UTC](https://discourse.itk.org/t/itk-50-000-commit-celebration-hackathon/1737 "2019-04-10T14:02:15Z")

</div>

Folks, Yesterday, we reached an epic milestone: With commit 17df267d7f8f5eb4a8073f600ca4295a1f5839f2 @hjmjohnson hit the 50,000’th commit in the ITK source code repository :tada: To celebrate 50,000 thoughts, 50,000 n…

---

## [How to upload itk image to server?](https://discourse.itk.org/t/how-to-upload-itk-image-to-server/1766)

<div class="topic-metadata">

**Author:** [@Andrzej\_Marciniak](https://discourse.itk.org/u/Andrzej_Marciniak)\
**Replies:** 2\
**Last updated:** [April 9, 2019, 10:05pm UTC](https://discourse.itk.org/t/how-to-upload-itk-image-to-server/1766 "2019-04-09T22:05:08Z")

</div>

Hello, I am writing VTK/ITK MRI browser/editor and I would like to save edited image on a server. I found out how to convert vtk to itk (https://github.com/Kitware/paraview-glance/issues/180#issuecomment-408659132) , an…

---

## [MRFImageFilter vector image input](https://discourse.itk.org/t/mrfimagefilter-vector-image-input/1764)

<div class="topic-metadata">

**Author:** [@Courtney\_Ambrozic](https://discourse.itk.org/u/Courtney_Ambrozic)\
**Replies:** 0\
**Last updated:** [April 9, 2019, 3:24pm UTC](https://discourse.itk.org/t/mrfimagefilter-vector-image-input/1764 "2019-04-09T15:24:01Z")

</div>

Hello, I have a few questions about the inputs to the MRFImageFilter. I understand that the filter takes both the original image and a labeled image. I am, however, confused about how to input both of these images int…

---

## [SimpleITK add filter / module](https://discourse.itk.org/t/simpleitk-add-filter-module/1750)

<div class="topic-metadata">

**Author:** [@Gustavo\_Tajes\_Genga](https://discourse.itk.org/u/Gustavo_Tajes_Genga)\
**Replies:** 5\
**Last updated:** [April 9, 2019, 3:09pm UTC](https://discourse.itk.org/t/simpleitk-add-filter-module/1750 "2019-04-09T15:09:28Z")

</div>

Hi all, I have a very simple ITK pipeline wrote some time ago that reads a dicom serie and generate a mesh, based in this example: bool VtkGenerator::generate() { using PixelType = unsigned short; constexpr unsigned in…

---

## [converting pixel type of dicom series and saving them](https://discourse.itk.org/t/converting-pixel-type-of-dicom-series-and-saving-them/1763)

<div class="topic-metadata">

**Author:** [@Marco\_Festugato](https://discourse.itk.org/u/Marco_Festugato)\
**Replies:** 4\
**Last updated:** [April 9, 2019, 2:11pm UTC](https://discourse.itk.org/t/converting-pixel-type-of-dicom-series-and-saving-them/1763 "2019-04-09T14:11:34Z")

</div>

Hello there, for my purposes I had to load a 2D dicom series (I used the example DicomSeriesReadSeriesWrite) and create a volume, then I had to change pixel format because my filter accepts only ‘float’ type. I used th…

---

## [How to control iteration step by step in levelset-based filter?](https://discourse.itk.org/t/how-to-control-iteration-step-by-step-in-levelset-based-filter/1761)

<div class="topic-metadata">

**Author:** [@wenyalin](https://discourse.itk.org/u/wenyalin)\
**Replies:** 1\
**Last updated:** [April 9, 2019, 1:15pm UTC](https://discourse.itk.org/t/how-to-control-iteration-step-by-step-in-levelset-based-filter/1761 "2019-04-09T13:15:47Z")

</div>

Hey guys, I’m a newbie in ITK. I’m wondering how could the GAC Level Set example achieve animated display? (link below, “Results” section) https://itk.org/ITKExamples/src/Segmentation/LevelSets/SegmentWithGeodesicActiv…

---

## [Image Registration with Pseudo-Random Sampling throws exception randomly (maybe bug)](https://discourse.itk.org/t/image-registration-with-pseudo-random-sampling-throws-exception-randomly-maybe-bug/1513)

<div class="topic-metadata">

**Author:** [@HsuehWen](https://discourse.itk.org/u/HsuehWen)\
**Replies:** 29\
**Last updated:** [April 9, 2019, 1:12pm UTC](https://discourse.itk.org/t/image-registration-with-pseudo-random-sampling-throws-exception-randomly-maybe-bug/1513 "2019-04-09T13:12:51Z")

</div>

Hi all, It will take a lot of words to describe the issue. But I think it might be a bug. Thank you for your time reading this. Let me first specify the functions I used. I’m doing image registration, translation fir…

---

## [Build ITK 5.0 in Windows](https://discourse.itk.org/t/build-itk-5-0-in-windows/1748)

<div class="topic-metadata">

**Author:** [@sandroqueiros](https://discourse.itk.org/u/sandroqueiros)\
**Replies:** 13\
**Last updated:** [April 8, 2019, 4:24pm UTC](https://discourse.itk.org/t/build-itk-5-0-in-windows/1748 "2019-04-08T16:24:08Z")

</div>

Hi, I have been trying to build ITK 5.0 (rc1 or master) in Windows with BUILD\_SHARED\_LIBS selected (to generate ITK dlls, as I’ve done for previous releases - e.g., 4.12.0), but without success. My setup is: Windows 8.…

---

## [ITK Take Too Long To read Double type image](https://discourse.itk.org/t/itk-take-too-long-to-read-double-type-image/917)

<div class="topic-metadata">

**Author:** [@wyBrian](https://discourse.itk.org/u/wyBrian)\
**Replies:** 12\
**Last updated:** [April 8, 2019, 1:12pm UTC](https://discourse.itk.org/t/itk-take-too-long-to-read-double-type-image/917 "2019-04-08T13:12:37Z")

</div>

Hi, all: Lately, I am coding an python app using itk. For dcm files IO, i try itk.ImageFileReader and itk.ImageSeriesReader, both take too long to read dcm with double type image. Environment is homebrewed ITK on Mac. L…

---

## [Specifying ImageIO when reading a file in Python](https://discourse.itk.org/t/specifying-imageio-when-reading-a-file-in-python/1754)

<div class="topic-metadata">

**Author:** [@alkamid](https://discourse.itk.org/u/alkamid)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 7:07am UTC](https://discourse.itk.org/t/specifying-imageio-when-reading-a-file-in-python/1754 "2019-04-08T07:07:50Z")

</div>

With SimpleITK, I can specify ImageIO when reading a file: image = sitk.ReadImage(filename, sitk.sitkInt16, 'GiplImageIO') Is there a similar, Pythonic interface for this in itk-5.0rc1? I tried: img = itk.image\_file\_r…

---

## [liver segmentation](https://discourse.itk.org/t/liver-segmentation/1752)

<div class="topic-metadata">

**Author:** [@Marco\_Festugato](https://discourse.itk.org/u/Marco_Festugato)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 12:02pm UTC](https://discourse.itk.org/t/liver-segmentation/1752 "2019-04-07T12:02:10Z")

</div>

Hi guys, I have to segment the liver in 199 different images of the same patient, any ideas/code/example about the classes/methods i should use? Thanks in advance!

---

## [ITKIOScanco module](https://discourse.itk.org/t/itkioscanco-module/1727)

<div class="topic-metadata">

**Author:** [@mihail.isakov](https://discourse.itk.org/u/mihail.isakov)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 8:18pm UTC](https://discourse.itk.org/t/itkioscanco-module/1727 "2019-04-05T20:18:36Z")

</div>

---

## [Memory problem loading vtk and itk](https://discourse.itk.org/t/memory-problem-loading-vtk-and-itk/1722)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.itk.org/u/zandarina)\
**Replies:** 11\
**Last updated:** [April 3, 2019, 9:18pm UTC](https://discourse.itk.org/t/memory-problem-loading-vtk-and-itk/1722 "2019-04-03T21:18:53Z")

</div>

Dear all, I have a volume 549x549x700. I loaded in vtk and when i want to perform a segmentation, i export the vtk volume into a itk image but i get a memry problem. Is there any ay to share the object and not to cerat…

---

## [how to apply kernel in ConvolutionImageFilter](https://discourse.itk.org/t/how-to-apply-kernel-in-convolutionimagefilter/1741)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 4\
**Last updated:** [April 3, 2019, 7:53pm UTC](https://discourse.itk.org/t/how-to-apply-kernel-in-convolutionimagefilter/1741 "2019-04-03T19:53:40Z")

</div>

Hello, I want to apply an image (kernel) to an input Image, but I am not sure how can I apply that correctly. I have attached the sample of my code here: #include “itkImageFileReader.h” #include “itkImageFileWriter.…

---

## [AdaptiveHistogramEqualizationImageFilter- parameter tuning](https://discourse.itk.org/t/adaptivehistogramequalizationimagefilter-parameter-tuning/1738)

<div class="topic-metadata">

**Author:** [@Courtney\_Ambrozic](https://discourse.itk.org/u/Courtney_Ambrozic)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 4:46pm UTC](https://discourse.itk.org/t/adaptivehistogramequalizationimagefilter-parameter-tuning/1738 "2019-04-03T16:46:14Z")

</div>

Hello, Regarding the AdaptiveHistogramEqualizationImageFilter, is there a way to set the function to completely behave as a classical histogram equalization method? Once alpha is set to 0, does beta represent a range f…

---

## [Applying clustering algorithms to a volume surface](https://discourse.itk.org/t/applying-clustering-algorithms-to-a-volume-surface/1736)

<div class="topic-metadata">

**Author:** [@LVittorelli](https://discourse.itk.org/u/LVittorelli)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 9:18pm UTC](https://discourse.itk.org/t/applying-clustering-algorithms-to-a-volume-surface/1736 "2019-04-02T21:18:32Z")

</div>

Hello, I’m trying to compare some OpenFOAM CFD simulations that reproduce the flow through an almost spherical object(the object is a reconstruction, with an irregular shape), searching for the one with the smallest clu…

---

## [Cannot open source file "itkMultiScaleHessianBasedMeasureImageFilter.h"](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 9\
**Last updated:** [April 2, 2019, 8:14pm UTC](https://discourse.itk.org/t/cannot-open-source-file-itkmultiscalehessianbasedmeasureimagefilter-h/1726 "2019-04-02T20:14:45Z")

</div>

Hello, I get an error in Visual Studio 2017 when I am trying to include itkMultiScaleHessianBasedMeasureImageFilter header file. When I try to build the solution I get the following error Thanks in advance, Helen

---

## [m\_UseSequentialSampling error while performing registration of two 3D images of same modality](https://discourse.itk.org/t/m-usesequentialsampling-error-while-performing-registration-of-two-3d-images-of-same-modality/1728)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 6\
**Last updated:** [April 2, 2019, 5:48pm UTC](https://discourse.itk.org/t/m-usesequentialsampling-error-while-performing-registration-of-two-3d-images-of-same-modality/1728 "2019-04-02T17:48:43Z")

</div>

I am trying to execute the code from following page for my registration I removed all this exception handling code …as I am not much aware of it. and tried executing. the error comes while executing registration-\>upda…

---

## [InterpolateImageFunction of templated PixelType](https://discourse.itk.org/t/interpolateimagefunction-of-templated-pixeltype/1729)

<div class="topic-metadata">

**Author:** [@Gordian](https://discourse.itk.org/u/Gordian)\
**Replies:** 3\
**Last updated:** [April 2, 2019, 4:26pm UTC](https://discourse.itk.org/t/interpolateimagefunction-of-templated-pixeltype/1729 "2019-04-02T16:26:34Z")

</div>

Hello, if I want to use an ImageInterpolatorFunction (Linear or NearestNeighbor) for an image with PixelType that can be either scalar or a vector. The PixelType is determined at compile time because the function templ…

---

## [Convolution Filter 3d Image](https://discourse.itk.org/t/convolution-filter-3d-image/1730)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.itk.org/u/siaeleni)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 4:23pm UTC](https://discourse.itk.org/t/convolution-filter-3d-image/1730 "2019-04-02T16:23:13Z")

</div>

Hello, I want to filter my 3d Image with a kernel(9x9x9 for example). What is the best function to use for this? ConvolutionImageFilter? Thanks a lot for your help, Eleni

---

## [PyRadiomics for 2D Images](https://discourse.itk.org/t/pyradiomics-for-2d-images/1723)

<div class="topic-metadata">

**Author:** [@machadoL](https://discourse.itk.org/u/machadoL)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 3:17am UTC](https://discourse.itk.org/t/pyradiomics-for-2d-images/1723 "2019-04-02T03:17:09Z")

</div>

Hi everyone, I am trying to extract radiomic features from 2D images (PNG or Nrrd) but I start to get a series of errors saying basically “3D array expected”. I’ve been adding “force2D”, “force2Dextraction”, and “force…

---

## [ImageAlgorithm backward incompatible change](https://discourse.itk.org/t/imagealgorithm-backward-incompatible-change/1725)

<div class="topic-metadata">

**Author:** [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 3:15am UTC](https://discourse.itk.org/t/imagealgorithm-backward-incompatible-change/1725 "2019-04-02T03:15:16Z")

</div>

The following commit has introduced a backward incompatible change (see for example RTK’s issues). Is this intentional? I have the feeling that defining a default template would have avoided this… but I’m guessing I’…

---

## [Geometric Medial Axis Representation from Binary Thinning](https://discourse.itk.org/t/geometric-medial-axis-representation-from-binary-thinning/1702)

<div class="topic-metadata">

**Author:** [@aWilson41](https://discourse.itk.org/u/aWilson41)\
**Replies:** 5\
**Last updated:** [April 1, 2019, 1:22pm UTC](https://discourse.itk.org/t/geometric-medial-axis-representation-from-binary-thinning/1702 "2019-04-01T13:22:22Z")

</div>

How can I turn the medial axis produced by ITKs binary thinning into a mesh? Isosurface extraction methods would not be able to generate such a non manifold mesh. I can sort of imagine a way to do it but was hoping there…

---

## [SetSigma in sitk.SmoothingRecursiveGaussianImageFilter()](https://discourse.itk.org/t/setsigma-in-sitk-smoothingrecursivegaussianimagefilter/1721)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 3\
**Last updated:** [April 1, 2019, 6:26pm UTC](https://discourse.itk.org/t/setsigma-in-sitk-smoothingrecursivegaussianimagefilter/1721 "2019-04-01T18:26:36Z")

</div>

According to the documentation SetSigma is measured in the units of image spacing. If I have 3D image with spacing = \[0.5, 0.5, 3\] (mm) and sigma is set to 3, does this mean that I am smoothing 3mm isotropically? Or doe…

---

## [Issues reproducing N4BiasFieldCorrection results in Windows and Linux](https://discourse.itk.org/t/issues-reproducing-n4biasfieldcorrection-results-in-windows-and-linux/1623)

<div class="topic-metadata">

**Author:** [@rcorredorj](https://discourse.itk.org/u/rcorredorj)\
**Replies:** 12\
**Last updated:** [April 1, 2019, 3:47pm UTC](https://discourse.itk.org/t/issues-reproducing-n4biasfieldcorrection-results-in-windows-and-linux/1623 "2019-04-01T15:47:54Z")

</div>

Hi ITKers, I’m having troubles to reproduce exactly the same results with the N4BiasFieldCorrection in Windows vs. Linux. Even more strange it does work for certain cases, but not for others. I’ve tried already many thi…

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

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