# Latest

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

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

**Page:** 79

---

## [Crash in WatershedImageFilter](https://discourse.itk.org/t/crash-in-watershedimagefilter/2428)

<div class="topic-metadata">

**Author:** [@nm97](https://discourse.itk.org/u/nm97)\
**Replies:** 11\
**Last updated:** [November 25, 2019, 9:01pm UTC](https://discourse.itk.org/t/crash-in-watershedimagefilter/2428 "2019-11-25T21:01:04Z")

</div>

Hi, I am trying to run WatershedImageFilter class function with this arguments(image -{0.,0.,0.,0.,1.f/4503599627370496.f,0.,0.}, 1.0(Level), 0.0(Threshold)). #include "itkWatershedImageFilter.h" #include "itkCastImage…

---

## [Resample a vector image with transform](https://discourse.itk.org/t/resample-a-vector-image-with-transform/2438)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 4\
**Last updated:** [November 25, 2019, 6:00pm UTC](https://discourse.itk.org/t/resample-a-vector-image-with-transform/2438 "2019-11-25T18:00:32Z")

</div>

I understand how to resample a single channel image, but am having trouble figuring out how to to do it with a rgb image. I am creating and image from a numpy array, reading it in like: f\_sitk = sitk.GetImageFromArray(…

---

## [Resample image python code.](https://discourse.itk.org/t/resample-image-python-code/408)

<div class="topic-metadata">

**Author:** [@SantaHub](https://discourse.itk.org/u/SantaHub)\
**Replies:** 5\
**Last updated:** [November 25, 2019, 3:09pm UTC](https://discourse.itk.org/t/resample-image-python-code/408 "2019-11-25T15:09:07Z")

</div>

Hi, i am new to the itk package. Would you have time to do a sample code on Resampling image in python? i got the c++ version here : https://itk.org/Wiki/ITK/Examples/ImageProcessing/ResampleImageFilter My need is to …

---

## [Changing the range of the voxel values](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 1\
**Last updated:** [November 25, 2019, 2:06pm UTC](https://discourse.itk.org/t/changing-the-range-of-the-voxel-values/2436 "2019-11-25T14:06:12Z")

</div>

I have an image that has their values in a range of 0 and 0.4, but I’d like to rescale its intensities to the range 0 - 1. Then I used the function RescaleIntensity(image, 0, 1), but the function returns me a black image…

---

## [Get 2D Bounding box from a 3D bounding box of a labelled image](https://discourse.itk.org/t/get-2d-bounding-box-from-a-3d-bounding-box-of-a-labelled-image/2433)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 1:38am UTC](https://discourse.itk.org/t/get-2d-bounding-box-from-a-3d-bounding-box-of-a-labelled-image/2433 "2019-11-25T01:38:56Z")

</div>

Hi I have a use case where I have got 3D segmented image. I extract 3D bounding box info from shape stats. For example VOI Shape Stats: 45 Physical Size 2019.880133789592 Bounding Box: (239, 215, 0, 93, 85, 20) Now For l…

---

## [Crash in SignedMaurerDistanceMapImageFilter when aborting](https://discourse.itk.org/t/crash-in-signedmaurerdistancemapimagefilter-when-aborting/2432)

<div class="topic-metadata">

**Author:** [@IanL](https://discourse.itk.org/u/IanL)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 10:28am UTC](https://discourse.itk.org/t/crash-in-signedmaurerdistancemapimagefilter-when-aborting/2432 "2019-11-22T10:28:52Z")

</div>

Hi all, I am trying to track down a crash I am seeing when aborting SignedMaurerDistanceMapImageFilter while it is generating a distance map. The crash occurs at line 299 in itkImageSource.hxx, ThreaderCallback() : Thr…

---

## [capture stdout](https://discourse.itk.org/t/capture-stdout/2431)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 3:08am UTC](https://discourse.itk.org/t/capture-stdout/2431 "2019-11-21T03:08:44Z")

</div>

I would like to capture stdout for a portion of a command that doesn’t have a direct python interface. e.g. SimpleElastix has this command sitk.PrintParameterMap(rigid) but I would like to parse the stdout, but I Don’…

---

## [IsolatedConnectedImageFilter](https://discourse.itk.org/t/isolatedconnectedimagefilter/2429)

<div class="topic-metadata">

**Author:** [@abir](https://discourse.itk.org/u/abir)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 8:15pm UTC](https://discourse.itk.org/t/isolatedconnectedimagefilter/2429 "2019-11-20T20:15:37Z")

</div>

I have been working on an exemple of segmentation, for this exemple a threshold must be provided :: isolatedConnected-\>SetLower( lowerThreshold ) So can any one give me an idea how can I specify this threshold for my…

---

## [Memory leaks istanziating itkImageFileReader in MFC](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388)

<div class="topic-metadata">

**Author:** [@Lorenzo1980](https://discourse.itk.org/u/Lorenzo1980)\
**Replies:** 24\
**Last updated:** [November 20, 2019, 3:19pm UTC](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388 "2019-11-20T15:19:11Z")

</div>

Hi, I have implemented an MFC application using VS2015 and ITK 5.0.1. I don’t understand why just istanziating an itkImageFileReader object I get some 8 bytes memory leaks. Can anyone help me? Thanks in advance, Lor…

---

## [Metric to evaluate the registration accuracy on 3D MRI](https://discourse.itk.org/t/metric-to-evaluate-the-registration-accuracy-on-3d-mri/2426)

<div class="topic-metadata">

**Author:** [@thanhduc1910](https://discourse.itk.org/u/thanhduc1910)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 2:08pm UTC](https://discourse.itk.org/t/metric-to-evaluate-the-registration-accuracy-on-3d-mri/2426 "2019-11-20T14:08:56Z")

</div>

Hello, I am a newbie to ITK registration. Currently, I am implementing intra-subject registration of 3D PET (moving image) into 3D MRI (fixed image) using ITK. I want to check the registration accuracy which is the erro…

---

## [New Insight Journal article: An Empirical Optimization to Logistic Classification Model](https://discourse.itk.org/t/new-insight-journal-article-an-empirical-optimization-to-logistic-classification-model/2425)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 3\
**Last updated:** [November 20, 2019, 1:57pm UTC](https://discourse.itk.org/t/new-insight-journal-article-an-empirical-optimization-to-logistic-classification-model/2425 "2019-11-20T13:57:52Z")

</div>

An Empirical Optimization to Logistic Classification Model Senra Filho A.C. University of Sao Paulo Please use this identifier to cite or link to this publication: http://hdl.handle.net/10380/3603 Recently, the sci…

---

## [Find all available modules from GroupIO](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 16\
**Last updated:** [November 20, 2019, 6:45am UTC](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351 "2019-11-20T06:45:09Z")

</div>

Is it possible to use any installed/available modules from Group IO without specifying particular Modules: IOTIFF, etc? Something like: find\_package(ITK COMPONENTS ITKExternalModule ITKGroupIO ...) Right now I am using…

---

## [Extracting Exact Metric Value in SimpleITK Python](https://discourse.itk.org/t/extracting-exact-metric-value-in-simpleitk-python/2423)

<div class="topic-metadata">

**Author:** [@jhess](https://discourse.itk.org/u/jhess)\
**Replies:** 6\
**Last updated:** [November 19, 2019, 5:57pm UTC](https://discourse.itk.org/t/extracting-exact-metric-value-in-simpleitk-python/2423 "2019-11-19T17:57:47Z")

</div>

Hi there, I am using Elastix in command line to register images using Mattes mutual information metric, and at the end of the registration process, I am recording the exact metric value between the fixed and moving imag…

---

## [Linking ITK and QT (Ubuntu)](https://discourse.itk.org/t/linking-itk-and-qt-ubuntu/2415)

<div class="topic-metadata">

**Author:** [@FBT](https://discourse.itk.org/u/FBT)\
**Replies:** 6\
**Last updated:** [November 18, 2019, 12:58pm UTC](https://discourse.itk.org/t/linking-itk-and-qt-ubuntu/2415 "2019-11-18T12:58:27Z")

</div>

Hi I’ve been using ITK and Qt for a long time on windows. I am now trying to compile my soft on ubuntu 18.04 . ITK compiles well, the tests are OK. When linking my soft, I get the errors below. Has someone any idea ? T…

---

## [check with cmake if found ITK was compiled with GPU support](https://discourse.itk.org/t/check-with-cmake-if-found-itk-was-compiled-with-gpu-support/1522)

<div class="topic-metadata">

**Author:** [@grothausmann.roman](https://discourse.itk.org/u/grothausmann.roman)\
**Replies:** 5\
**Last updated:** [November 17, 2019, 1:13pm UTC](https://discourse.itk.org/t/check-with-cmake-if-found-itk-was-compiled-with-gpu-support/1522 "2019-11-17T13:13:00Z")

</div>

Hi! What is the state-of-the-art way to check with cmake which features are compiled into the ITK-library found on the system, spicifically if ITK was compiled with GPU support? Concerning enabled modules I am using th…

---

## [ImageToVTKImageFilter](https://discourse.itk.org/t/imagetovtkimagefilter/2409)

<div class="topic-metadata">

**Author:** [@nour](https://discourse.itk.org/u/nour)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 10:29pm UTC](https://discourse.itk.org/t/imagetovtkimagefilter/2409 "2019-11-15T22:29:28Z")

</div>

Hi, I am working with MRI database with Nifti format (.nii.gz) and I need to convert them to meshes (.vtk) I am building from sources and install to the system site-packages directory.(ITK and VTK) But I have some trou…

---

## [MHA Numpy](https://discourse.itk.org/t/mha-numpy/2400)

<div class="topic-metadata">

**Author:** [@fraca](https://discourse.itk.org/u/fraca)\
**Replies:** 14\
**Last updated:** [November 15, 2019, 10:26pm UTC](https://discourse.itk.org/t/mha-numpy/2400 "2019-11-15T22:26:16Z")

</div>

I’m trying to write this code in Python, but i don’t know what i have to do when i have to create an iterator to build the mask, because i don’t know what are the values of the array created from mha file. typedef itk:…

---

## [PyInstaller with ITK Python wrapping built from source](https://discourse.itk.org/t/pyinstaller-with-itk-python-wrapping-built-from-source/2411)

<div class="topic-metadata">

**Author:** [@Aisec](https://discourse.itk.org/u/Aisec)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 12:29pm UTC](https://discourse.itk.org/t/pyinstaller-with-itk-python-wrapping-built-from-source/2411 "2019-11-15T12:29:24Z")

</div>

Hello, I need to create windows 7 binaries of Python application that uses ITK, both 64 and 32 bit versions. I successfully created 64 bit version with itk installed using pip and using this hook file, which i found som…

---

## [SetSize, SetIndex Python](https://discourse.itk.org/t/setsize-setindex-python/2413)

<div class="topic-metadata">

**Author:** [@fraca](https://discourse.itk.org/u/fraca)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 3:42pm UTC](https://discourse.itk.org/t/setsize-setindex-python/2413 "2019-11-15T15:42:54Z")

</div>

There’s a way to set the size and the index of an image in python? Because commands processedVolumeRegion.SetSize(processedVolumeSize) processedVolumeRegion.SetIndex(processedVolumeStart) report this error: Attribut…

---

## [How to register two images that do not have the same information?](https://discourse.itk.org/t/how-to-register-two-images-that-do-not-have-the-same-information/2404)

<div class="topic-metadata">

**Author:** [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)\
**Replies:** 2\
**Last updated:** [November 14, 2019, 3:22pm UTC](https://discourse.itk.org/t/how-to-register-two-images-that-do-not-have-the-same-information/2404 "2019-11-14T15:22:04Z")

</div>

I have two MRI images, but one image has the complete head and the other has some parts of the head cut, including some parts of the brain. So how can I register these images? PS: My initial investigation was firstly do…

---

## [Maximum dimensions in an image](https://discourse.itk.org/t/maximum-dimensions-in-an-image/2405)

<div class="topic-metadata">

**Author:** [@sarthakpati](https://discourse.itk.org/u/sarthakpati)\
**Replies:** 2\
**Last updated:** [November 14, 2019, 2:08pm UTC](https://discourse.itk.org/t/maximum-dimensions-in-an-image/2405 "2019-11-14T14:08:45Z")

</div>

Is it possible to have more than 32767 columns/rows in an image? I have observed that a package that is using ITK \[ref\] has this limitation and I was curious if this was indeed the case.

---

## [ImageMomentsCalculator how to in python](https://discourse.itk.org/t/imagemomentscalculator-how-to-in-python/2402)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 1\
**Last updated:** [November 14, 2019, 4:16am UTC](https://discourse.itk.org/t/imagemomentscalculator-how-to-in-python/2402 "2019-11-14T04:16:56Z")

</div>

I want to use the imageMomentsCalculator to get the “center of mass” of an image how could one do this with the python interface? it appears its only indirectly available as part registration intialization?

---

## [C# or F# or dotnet core bindings for the "main" ITK library instead of SimpleITK?](https://discourse.itk.org/t/c-or-f-or-dotnet-core-bindings-for-the-main-itk-library-instead-of-simpleitk/2361)

<div class="topic-metadata">

**Author:** [@vincenzoml](https://discourse.itk.org/u/vincenzoml)\
**Replies:** 15\
**Last updated:** [November 13, 2019, 5:49pm UTC](https://discourse.itk.org/t/c-or-f-or-dotnet-core-bindings-for-the-main-itk-library-instead-of-simpleitk/2361 "2019-11-13T17:49:00Z")

</div>

Hi all. In our research on declarative image analysis (see www.voxlogica.org) we have used with quite some success SimpleITK from fsharp. I now went to check whether ITK 5 is available in SimpleITK and the answer (gotten…

---

## [SimpleITK 1.2.4 Release](https://discourse.itk.org/t/simpleitk-1-2-4-release/2401)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 0\
**Last updated:** [November 13, 2019, 3:39pm UTC](https://discourse.itk.org/t/simpleitk-1-2-4-release/2401 "2019-11-13T15:39:18Z")

</div>

Announcement Announcing the SimpleITK 1.2.4 patch release! NOTE: This will be the last SimpleITK release with Python 2.7 support or pre-built 32-bit binaries. Time to continue moving forward! Installing SimpleITK Compl…

---

## [Multiprocessing for write and read file](https://discourse.itk.org/t/multiprocessing-for-write-and-read-file/2395)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 12:18am UTC](https://discourse.itk.org/t/multiprocessing-for-write-and-read-file/2395 "2019-11-13T00:18:28Z")

</div>

Hi all, I’m programming a python based software which uses multiprocessing technique. For one process, it will call “itk.ImageFileWrite” to export a 3D volume to a NRRD file (“write” operation). For the rest processes, …

---

## [is there a way to set custom metric in itk registration in python?](https://discourse.itk.org/t/is-there-a-way-to-set-custom-metric-in-itk-registration-in-python/705)

<div class="topic-metadata">

**Author:** [@sedghi](https://discourse.itk.org/u/sedghi)\
**Replies:** 7\
**Last updated:** [November 12, 2019, 4:40pm UTC](https://discourse.itk.org/t/is-there-a-way-to-set-custom-metric-in-itk-registration-in-python/705 "2019-11-12T16:40:56Z")

</div>

I have a similarity metric that I’d like to use in ImageRegistrationMethod in itk python, is there any way to do so?

---

## [itk v5.0: dynamic cast in itkMacro.h fails on MacOs](https://discourse.itk.org/t/itk-v5-0-dynamic-cast-in-itkmacro-h-fails-on-macos/2392)

<div class="topic-metadata">

**Author:** [@dyoll](https://discourse.itk.org/u/dyoll)\
**Replies:** 9\
**Last updated:** [November 11, 2019, 2:49pm UTC](https://discourse.itk.org/t/itk-v5-0-dynamic-cast-in-itkmacro-h-fails-on-macos/2392 "2019-11-11T14:49:00Z")

</div>

Hi I built ITK on my mac with default options (BUILD\_SHARED\_LIBS=ON). compiler is : Apple clang version 11.0.0 (clang-1100.0.33.12) I build my application(s) with: SET(CMAKE\_CXX\_STANDARD 11) SET(CMAKE\_CXX\_STANDARD\_R…

---

## [Wrap ITK Python](https://discourse.itk.org/t/wrap-itk-python/2391)

<div class="topic-metadata">

**Author:** [@fraca](https://discourse.itk.org/u/fraca)\
**Replies:** 7\
**Last updated:** [November 8, 2019, 4:11pm UTC](https://discourse.itk.org/t/wrap-itk-python/2391 "2019-11-08T16:11:23Z")

</div>

I’m trying to convert a C++ ITK code in python, but i find some issues with this input: TemplateTypeError: itk.ImageFileReader is not wrapped for input type itk.Image\[itk.UL,3\]. But i don’t know hot to solve the problem …

---

## [curvatureAnisotropicDiffusionFilter](https://discourse.itk.org/t/curvatureanisotropicdiffusionfilter/2384)

<div class="topic-metadata">

**Author:** [@nm97](https://discourse.itk.org/u/nm97)\
**Replies:** 7\
**Last updated:** [November 8, 2019, 1:25pm UTC](https://discourse.itk.org/t/curvatureanisotropicdiffusionfilter/2384 "2019-11-08T13:25:13Z")

</div>

Hi, I’m using curvatureAnisotropicDiffusionFilter class. I get correct result after filtering, but In macOS is much more slower than Linux or Windows. Can someone tell the reason, or how can I fix this? Thank you

---

## [SCIFIO java version limitations](https://discourse.itk.org/t/scifio-java-version-limitations/2383)

<div class="topic-metadata">

**Author:** [@grothausmann.roman](https://discourse.itk.org/u/grothausmann.roman)\
**Replies:** 9\
**Last updated:** [November 8, 2019, 1:19pm UTC](https://discourse.itk.org/t/scifio-java-version-limitations/2383 "2019-11-08T13:19:20Z")

</div>

After an upgrade to Debian-10 (Buster) we can no longer process image formats with ITK that need SCIFIO (bioformats). Even though ITK-5.0.1 is newly compiled after the upgrade we get: File: /opt/compilation/ITK\_build/Mo…

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

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