# Latest

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

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

**Page:** 84

---

## [ResampleImageFilter 4D Images](https://discourse.itk.org/t/resampleimagefilter-4d-images/2172)

<div class="topic-metadata">

**Author:** [@SachidanandAlle](https://discourse.itk.org/u/SachidanandAlle)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 1:51pm UTC](https://discourse.itk.org/t/resampleimagefilter-4d-images/2172 "2019-08-20T13:51:40Z")

</div>

Currently I am getting error when I try to use ResampleImageFilter over 4D image In the following thread, it is mentioned that 4D support is only limited to ExtractImageFilter File “/usr/local/lib/python3.5/dist-packa…

---

## [cross compile problem (ITK\_bld\_internal\_H5make\_libsettings)](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162)

<div class="topic-metadata">

**Author:** [@eninyo](https://discourse.itk.org/u/eninyo)\
**Replies:** 5\
**Last updated:** [August 19, 2019, 9:12pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162 "2019-08-19T21:12:30Z")

</div>

hello, i’m using ITK version 4.13.2. i manage to compile it for Windows (using VS2017), but when i try to compile to cross compilation i get problems: First, I had a problem with this: CMAKE\_CURRENT\_BINARY\_DIR It sa…

---

## [Registration Initialization](https://discourse.itk.org/t/registration-initialization/2164)

<div class="topic-metadata">

**Author:** [@kekday](https://discourse.itk.org/u/kekday)\
**Replies:** 1\
**Last updated:** [August 19, 2019, 1:06pm UTC](https://discourse.itk.org/t/registration-initialization/2164 "2019-08-19T13:06:28Z")

</div>

Hi all, I am very new to ITK and I was looking at this notebook More specifically I see the initialization was done using initial\_transform = sitk.CenteredTransformInitializer(fixed\_image, moving\_image, sitk.Euler3…

---

## [Linker errors building ITK 5.0.1 shared libs with ITKIODCMTK enabled](https://discourse.itk.org/t/linker-errors-building-itk-5-0-1-shared-libs-with-itkiodcmtk-enabled/2141)

<div class="topic-metadata">

**Author:** [@dyoll](https://discourse.itk.org/u/dyoll)\
**Replies:** 3\
**Last updated:** [August 16, 2019, 2:46pm UTC](https://discourse.itk.org/t/linker-errors-building-itk-5-0-1-shared-libs-with-itkiodcmtk-enabled/2141 "2019-08-16T14:46:22Z")

</div>

When I compile ITK 5.0.1 on Windows (VS 2015 x64, BUILD\_SHARED\_LIBS=ON, Module\_ITKIODCMTK=ON, otherwise default configuration) I get linker errors (see attached log file). I searched for those symbols, but found stuff re…

---

## [LNK2019 error in ITK DicomImageReadWrite.cxx example](https://discourse.itk.org/t/lnk2019-error-in-itk-dicomimagereadwrite-cxx-example/2132)

<div class="topic-metadata">

**Author:** [@Pooja\_Virkar](https://discourse.itk.org/u/Pooja_Virkar)\
**Replies:** 11\
**Last updated:** [August 15, 2019, 3:10pm UTC](https://discourse.itk.org/t/lnk2019-error-in-itk-dicomimagereadwrite-cxx-example/2132 "2019-08-15T15:10:49Z")

</div>

Hello, I am trying to run DicomImageReadWrite.cxx example mentioned on ITK website on Visual Studio 2019. I have compiled ITK with CMake Visual studio 2019 compiler. But I am getting following errors : Error1 - LNK201…

---

## [Slope and intercept when reading Nifti images](https://discourse.itk.org/t/slope-and-intercept-when-reading-nifti-images/2122)

<div class="topic-metadata">

**Author:** [@Elli](https://discourse.itk.org/u/Elli)\
**Replies:** 8\
**Last updated:** [August 15, 2019, 2:38pm UTC](https://discourse.itk.org/t/slope-and-intercept-when-reading-nifti-images/2122 "2019-08-15T14:38:43Z")

</div>

Dear all, I have a very basic question: I am reading in nifti images using: ImageType::Pointer readImage(string imageName) { typename ReaderType::Pointer reader = ReaderType::New(); reader-\>SetFileName(imageName); t…

---

## [is it possible to write/save to disk all the meta-data of a DICOM image without explicitly stating which tags to copy?](https://discourse.itk.org/t/is-it-possible-to-write-save-to-disk-all-the-meta-data-of-a-dicom-image-without-explicitly-stating-which-tags-to-copy/2125)

<div class="topic-metadata">

**Author:** [@ral\_san](https://discourse.itk.org/u/ral_san)\
**Replies:** 6\
**Last updated:** [August 14, 2019, 3:10pm UTC](https://discourse.itk.org/t/is-it-possible-to-write-save-to-disk-all-the-meta-data-of-a-dicom-image-without-explicitly-stating-which-tags-to-copy/2125 "2019-08-14T15:10:15Z")

</div>

I am resampling a DICOM CT image and after resampling I would like to save it to disk as new image. I found this example https://simpleitk.readthedocs.io/en/master/Examples/DicomSeriesReadModifyWrite/Documentation.html …

---

## [Gibbs Prior Filter for Image Classification Smoothing](https://discourse.itk.org/t/gibbs-prior-filter-for-image-classification-smoothing/2147)

<div class="topic-metadata">

**Author:** [@Courtney\_Ambrozic](https://discourse.itk.org/u/Courtney_Ambrozic)\
**Replies:** 1\
**Last updated:** [August 13, 2019, 4:03pm UTC](https://discourse.itk.org/t/gibbs-prior-filter-for-image-classification-smoothing/2147 "2019-08-13T16:03:50Z")

</div>

Hello ITK community, I have a question about the RGBGibbsPriorFilter. Mainly, I’m having trouble understanding the underlying algorithm for this filter. Is this filter based off of the paper “Gibbs Prior Models, March…

---

## [Installing and using Python wrapped Remote Module](https://discourse.itk.org/t/installing-and-using-python-wrapped-remote-module/2104)

<div class="topic-metadata">

**Author:** [@laqua-stack](https://discourse.itk.org/u/laqua-stack)\
**Replies:** 13\
**Last updated:** [August 9, 2019, 7:56pm UTC](https://discourse.itk.org/t/installing-and-using-python-wrapped-remote-module/2104 "2019-08-09T19:56:40Z")

</div>

Hi all, I tried to build ITK Strain Image Filter https://github.com/KitwareMedical/ITKStrain and to install it. I used a conda virtual env with Python 3.6 and ITK 5.0.0.post1 from pypy in the environment, a self-build …

---

## [Strange (wrong?) interpolator behavior](https://discourse.itk.org/t/strange-wrong-interpolator-behavior/2139)

<div class="topic-metadata">

**Author:** [@richardM](https://discourse.itk.org/u/richardM)\
**Replies:** 2\
**Last updated:** [August 9, 2019, 1:40pm UTC](https://discourse.itk.org/t/strange-wrong-interpolator-behavior/2139 "2019-08-09T13:40:45Z")

</div>

Hi all, I was trying various interpolators to use applying a transformation I got from a simple euclid 2d registration. The image I’m applying it to is a CT image, and I’m using a 64bit float image type. When I resamp…

---

## [$LaTeX$-like math expressions now supported in posts](https://discourse.itk.org/t/latex-like-math-expressions-now-supported-in-posts/2137)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [August 9, 2019, 3:32am UTC](https://discourse.itk.org/t/latex-like-math-expressions-now-supported-in-posts/2137 "2019-08-09T03:32:39Z")

</div>

We have enabled MathJax via the Discourse Math plugin. Now posts may include nicely formatted math expressions such as f(x) = \\int\_{-y}^{y} \\phi(y)sin(y) dy The code for the expression above is as you would write an in…

---

## [New to ITK - moving from ImageJ macros - SimpleITK arithmetic Q](https://discourse.itk.org/t/new-to-itk-moving-from-imagej-macros-simpleitk-arithmetic-q/2101)

<div class="topic-metadata">

**Author:** [@richardM](https://discourse.itk.org/u/richardM)\
**Replies:** 8\
**Last updated:** [August 9, 2019, 8:22am UTC](https://discourse.itk.org/t/new-to-itk-moving-from-imagej-macros-simpleitk-arithmetic-q/2101 "2019-08-09T08:22:29Z")

</div>

Hi all, I’ve started a project to move a bunch of very long complicated ImageJ macros over to using SimpleITK. I’m new to both Python and ITK so please be nice :smiley: I’m working to get some simple registration goin…

---

## [Why Error 110	error LNK2005:?](https://discourse.itk.org/t/why-error-110-error-lnk2005/1595)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 5\
**Last updated:** [February 13, 2019, 6:41pm UTC](https://discourse.itk.org/t/why-error-110-error-lnk2005/1595 "2019-02-13T18:41:42Z")

</div>

In my project compiles fine in Debug mode, but in Release mode VS 2010 give me errors like these: Error 79 error LNK2005: “void \_\_cdecl std::\_Xlength\_error(char const \*)” (?\_Xlength\_error@std@@YAXPBD@Z) already defined …

---

## [ITK on Julia, Shared Library Files](https://discourse.itk.org/t/itk-on-julia-shared-library-files/2117)

<div class="topic-metadata">

**Author:** [@cj-mclaughlin](https://discourse.itk.org/u/cj-mclaughlin)\
**Replies:** 9\
**Last updated:** [August 9, 2019, 3:14am UTC](https://discourse.itk.org/t/itk-on-julia-shared-library-files/2117 "2019-08-09T03:14:15Z")

</div>

Hello, I was wondering if anyone had thought about/begun writing a Julia wrapper for ITK. My company has a C++ codebase but we are moving over to Julia, and I would like to be able to run our old code natively in Julia. …

---

## [Free memory and delete links of VTKSmartPointer Polydata](https://discourse.itk.org/t/free-memory-and-delete-links-of-vtksmartpointer-polydata/2130)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 9:34pm UTC](https://discourse.itk.org/t/free-memory-and-delete-links-of-vtksmartpointer-polydata/2130 "2019-08-07T21:34:01Z")

</div>

Hi, In my mesh, there are 642473 cells and 1275549 points. I want to replace cell of the mesh and after replacement, I want to reassign the mesh on the same name. But before reassign how can I free the memory and del…

---

## [How to include help files (HTMLDefines.h, MyApp.hhc, MyApp.hhk, MyApp.hhp) in the binary directory to get MyApp.chm help file in VS2013?](https://discourse.itk.org/t/how-to-include-help-files-htmldefines-h-myapp-hhc-myapp-hhk-myapp-hhp-in-the-binary-directory-to-get-myapp-chm-help-file-in-vs2013/2128)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 5\
**Last updated:** [August 7, 2019, 9:28pm UTC](https://discourse.itk.org/t/how-to-include-help-files-htmldefines-h-myapp-hhc-myapp-hhk-myapp-hhp-in-the-binary-directory-to-get-myapp-chm-help-file-in-vs2013/2128 "2019-08-07T21:28:24Z")

</div>

Hi. I have a project in VS2013 and I want to include ITK and VTK libraries using CMake. I configured my CMakeList.txt to include the files of source code of my application. But, I do not know how to make compile the hel…

---

## [How to use direction and origin information to show correct image orientation in numpy](https://discourse.itk.org/t/how-to-use-direction-and-origin-information-to-show-correct-image-orientation-in-numpy/2118)

<div class="topic-metadata">

**Author:** [@nsp8](https://discourse.itk.org/u/nsp8)\
**Replies:** 2\
**Last updated:** [August 5, 2019, 4:53pm UTC](https://discourse.itk.org/t/how-to-use-direction-and-origin-information-to-show-correct-image-orientation-in-numpy/2118 "2019-08-05T16:53:27Z")

</div>

Dear Community, I have two sitk images im1 and im2 with same physical size and shape. They are displayed correctly in slicer3d in terms of orientation. But they have different origins and directions as following, im1\_o…

---

## [Retrospective Image Registration Evaluation - service not working for me](https://discourse.itk.org/t/retrospective-image-registration-evaluation-service-not-working-for-me/2093)

<div class="topic-metadata">

**Author:** [@Peter.Roesch](https://discourse.itk.org/u/Peter.Roesch)\
**Replies:** 3\
**Last updated:** [August 5, 2019, 10:11am UTC](https://discourse.itk.org/t/retrospective-image-registration-evaluation-service-not-working-for-me/2093 "2019-08-05T10:11:41Z")

</div>

Hello, I would like to evaluate the accuracy of a registration approach using https://www.insight-journal.org/rire There were no error messages when I submitted transformations according to the guidelines. However, if …

---

## [ITK to RTK migration, forward projection issues/questions](https://discourse.itk.org/t/itk-to-rtk-migration-forward-projection-issues-questions/2107)

<div class="topic-metadata">

**Author:** [@blacava](https://discourse.itk.org/u/blacava)\
**Replies:** 3\
**Last updated:** [August 1, 2019, 5:13pm UTC](https://discourse.itk.org/t/itk-to-rtk-migration-forward-projection-issues-questions/2107 "2019-08-01T17:13:05Z")

</div>

Hi. I’m trying to port my ITK DRR renderer to RTK to leverage some of the GPU speedups, but the RTK API and output are considerably different from ITK and I’m not getting very far. For instance, here’s a a lateral DRR f…

---

## [SymmetricSecondRankTensor indexing (Straintensor)](https://discourse.itk.org/t/symmetricsecondranktensor-indexing-straintensor/2109)

<div class="topic-metadata">

**Author:** [@laqua-stack](https://discourse.itk.org/u/laqua-stack)\
**Replies:** 3\
**Last updated:** [July 31, 2019, 3:29pm UTC](https://discourse.itk.org/t/symmetricsecondranktensor-indexing-straintensor/2109 "2019-07-31T15:29:58Z")

</div>

Hi, I tried calculating Straintensor with ITKStrain Module http://insight-journal.org/browse/publication/984 from a 2D DisplacementField (256,256,2). The output is a SymmetricSecondRankTensor. I converted to numpy array…

---

## [How to reslice 3D volume image by ITK](https://discourse.itk.org/t/how-to-reslice-3d-volume-image-by-itk/2074)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 3\
**Last updated:** [July 23, 2019, 3:11pm UTC](https://discourse.itk.org/t/how-to-reslice-3d-volume-image-by-itk/2074 "2019-07-23T15:11:14Z")

</div>

If I provide the center and normal, how can I use the ITK to reslice 3D volume image? VTK has a class “vtkImageReslice”, does itk has similar class? Because I don’t know how to convert world coordinate to pixel location …

---

## [How to detect the edge of very noisy image?](https://discourse.itk.org/t/how-to-detect-the-edge-of-very-noisy-image/2090)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 6\
**Last updated:** [July 27, 2019, 1:09pm UTC](https://discourse.itk.org/t/how-to-detect-the-edge-of-very-noisy-image/2090 "2019-07-27T13:09:50Z")

</div>

I have this image of a cell which is very noisy and the edge of the circle cannot be detected. Which filter can be used to get the edge?

---

## [Problem in drawing geometrical object with ITK v5.0.0, but ITK v4 is good](https://discourse.itk.org/t/problem-in-drawing-geometrical-object-with-itk-v5-0-0-but-itk-v4-is-good/2098)

<div class="topic-metadata">

**Author:** [@yijun](https://discourse.itk.org/u/yijun)\
**Replies:** 3\
**Last updated:** [July 27, 2019, 1:07pm UTC](https://discourse.itk.org/t/problem-in-drawing-geometrical-object-with-itk-v5-0-0-but-itk-v4-is-good/2098 "2019-07-27T13:07:00Z")

</div>

Hi, I am working on a project which uses ITK to process medical images. Recently I upgraded ITK v4.13 to ITK v5.0.0 for the project, then I found something not working properly as before. Our function loads a list of poi…

---

## [Calculate the centroid of a simplex surface?](https://discourse.itk.org/t/calculate-the-centroid-of-a-simplex-surface/2096)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 3\
**Last updated:** [July 26, 2019, 8:55pm UTC](https://discourse.itk.org/t/calculate-the-centroid-of-a-simplex-surface/2096 "2019-07-26T20:55:53Z")

</div>

I have simplex surface and I need to calculate centroid of different parts of the simplex? The edges are not similar in every side. Screenshots attached.

---

## [How to segment the thin skin edge of body parts?](https://discourse.itk.org/t/how-to-segment-the-thin-skin-edge-of-body-parts/2078)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 16\
**Last updated:** [July 26, 2019, 2:29pm UTC](https://discourse.itk.org/t/how-to-segment-the-thin-skin-edge-of-body-parts/2078 "2019-07-26T14:29:51Z")

</div>

I have 3D image slices of chest. I only want to get the outer skin surface of the chest which will exclude all the organs inside. What kind of segmentation can be applied to get only the skin surface?

---

## [ITK 5.0.1 has been released!](https://discourse.itk.org/t/itk-5-0-1-has-been-released/2094)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 0\
**Last updated:** [July 26, 2019, 10:50am UTC](https://discourse.itk.org/t/itk-5-0-1-has-been-released/2094 "2019-07-26T10:50:33Z")

</div>

We are happy to announce the Insight Toolkit (ITK) 5.0.1! :tada: ITK is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and registration. Python Packages ITK Python p…

---

## [Dropping Legacy Python support -- Support for Python 3.5 and newer with ITK 5.1](https://discourse.itk.org/t/dropping-legacy-python-support-support-for-python-3-5-and-newer-with-itk-5-1/1998)

<div class="topic-metadata">

**Author:** [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Replies:** 2\
**Last updated:** [July 26, 2019, 12:27am UTC](https://discourse.itk.org/t/dropping-legacy-python-support-support-for-python-3-5-and-newer-with-itk-5-1/1998 "2019-07-26T00:27:41Z")

</div>

ITK 5.0 only supports Python 2.7 on Linux and macOS because of limitations of the C++ compiler required for Python 2.7 on Windows. Are there any objections to only supporting Python 3.5 and newer on all platforms with I…

---

## [BSpline fitting parametrization](https://discourse.itk.org/t/bspline-fitting-parametrization/1452)

<div class="topic-metadata">

**Author:** [@tim-evain](https://discourse.itk.org/u/tim-evain)\
**Replies:** 8\
**Last updated:** [July 25, 2019, 11:02am UTC](https://discourse.itk.org/t/bspline-fitting-parametrization/1452 "2019-07-25T11:02:27Z")

</div>

Hello guys, I’m trying to do BSpline fitting to estimate vessel centerlines given some user points. I use the BSplineScatteredDataPointSetToImageFilter and it gives good results in most cases. But when the parametric…

---

## [Decimating a Mesh with Associated Cell Data](https://discourse.itk.org/t/decimating-a-mesh-with-associated-cell-data/2072)

<div class="topic-metadata">

**Author:** [@DVigneault](https://discourse.itk.org/u/DVigneault)\
**Replies:** 3\
**Last updated:** [July 24, 2019, 5:43am UTC](https://discourse.itk.org/t/decimating-a-mesh-with-associated-cell-data/2072 "2019-07-24T05:43:08Z")

</div>

All– I’m getting some non-intuitive behavior (I don’t feel confident calling it a bug) when decimating a mesh which has point and cell data assigned. Say that I assign point data and cell data to a coarse mesh, and the…

---

## [Making a 3D sequence from 4D volume](https://discourse.itk.org/t/making-a-3d-sequence-from-4d-volume/2070)

<div class="topic-metadata">

**Author:** [@jrojasUNC](https://discourse.itk.org/u/jrojasUNC)\
**Replies:** 27\
**Last updated:** [July 23, 2019, 8:44pm UTC](https://discourse.itk.org/t/making-a-3d-sequence-from-4d-volume/2070 "2019-07-23T20:44:33Z")

</div>

Hi, I have loaded in a series of 2D sequences (3 dimensions) and stitched them together into a 4D image. Now I would like to save the image as a 3D sequence. I think that to do this I need an image that has 3 dimensions…

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

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