# Beginner Questions

**URL:** https://discourse.itk.org/c/beginner-questions/9.md?no_subcategories=false&page=34

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

**Page:** 35

---

## [DLL problem when installing ITK on Windows 10](https://discourse.itk.org/t/dll-problem-when-installing-itk-on-windows-10/1626)

<div class="topic-metadata">

**Author:** [@pfreire](https://discourse.itk.org/u/pfreire)\
**Replies:** 11\
**Last updated:** [March 1, 2019, 12:10am UTC](https://discourse.itk.org/t/dll-problem-when-installing-itk-on-windows-10/1626 "2019-03-01T00:10:24Z")

</div>

Hello, everyone. I’ve been using ITK on Linux for quite some time now (with no problems at all), but lately I’ve been trying to install it on Windows 10… to no avail. I’m using CMake 3.13.4 and when I try to configure th…

---

## [Non-rigid registration of two surface meshes with non-corresponding vertices](https://discourse.itk.org/t/non-rigid-registration-of-two-surface-meshes-with-non-corresponding-vertices/2214)

<div class="topic-metadata">

**Author:** [@wilson](https://discourse.itk.org/u/wilson)\
**Replies:** 8\
**Last updated:** [September 25, 2019, 6:30pm UTC](https://discourse.itk.org/t/non-rigid-registration-of-two-surface-meshes-with-non-corresponding-vertices/2214 "2019-09-25T18:30:36Z")

</div>

Hi Everyone, I have a bunch of beginner’s questions about what ITK can/cannot do. We have a bunch of 3-D surface meshes (different faces, each with a bunch of different facial expressions). Different meshes have differ…

---

## [How to start my project in ITK C++ as a python programmer](https://discourse.itk.org/t/how-to-start-my-project-in-itk-c-as-a-python-programmer/2219)

<div class="topic-metadata">

**Author:** [@Sara\_Caffe](https://discourse.itk.org/u/Sara_Caffe)\
**Replies:** 3\
**Last updated:** [September 24, 2019, 7:46pm UTC](https://discourse.itk.org/t/how-to-start-my-project-in-itk-c-as-a-python-programmer/2219 "2019-09-24T19:46:23Z")

</div>

Hi, I have been programming in python, but now I have to move to C++. I am a beginner in ITK/VTK, C++ programming and new to these libraries. I started with ITK examples, however, I do not know from which point should I…

---

## [Run examples from Windows command line](https://discourse.itk.org/t/run-examples-from-windows-command-line/2105)

<div class="topic-metadata">

**Author:** [@farhan\_009](https://discourse.itk.org/u/farhan_009)\
**Replies:** 10\
**Last updated:** [September 23, 2019, 3:31pm UTC](https://discourse.itk.org/t/run-examples-from-windows-command-line/2105 "2019-09-23T15:31:28Z")

</div>

---

## [How to resize DICOM properly?](https://discourse.itk.org/t/how-to-resize-dicom-properly/2235)

<div class="topic-metadata">

**Author:** [@TWK](https://discourse.itk.org/u/TWK)\
**Replies:** 7\
**Last updated:** [September 10, 2019, 4:04pm UTC](https://discourse.itk.org/t/how-to-resize-dicom-properly/2235 "2019-09-10T16:04:31Z")

</div>

Hello, I’m new to simpleITK and have a question about resizing the image. In my understanding, spacing is the distance between the pixels. So I thought if I reduce the spacing by half, I can get a new half-size image wit…

---

## [SimpleITK installation error (Lua version 5.1 is required for SimpleITK\_LUA\_EXECUTABLE\_VERSION)](https://discourse.itk.org/t/simpleitk-installation-error-lua-version-5-1-is-required-for-simpleitk-lua-executable-version/2191)

<div class="topic-metadata">

**Author:** [@Sara\_Caffe](https://discourse.itk.org/u/Sara_Caffe)\
**Replies:** 5\
**Last updated:** [September 9, 2019, 3:51pm UTC](https://discourse.itk.org/t/simpleitk-installation-error-lua-version-5-1-is-required-for-simpleitk-lua-executable-version/2191 "2019-09-09T15:51:55Z")

</div>

Hi, I want to build SimpleITK manually with the installed ITK5.0 on my device. I have installed lua5.1 by compiling the source by using the following commands: $ cd lua-5.1 $ mkdir lua\_build $ cd lua\_build $ make linux …

---

## [Anatomical orientation MHD](https://discourse.itk.org/t/anatomical-orientation-mhd/2231)

<div class="topic-metadata">

**Author:** [@SaskiaCamps](https://discourse.itk.org/u/SaskiaCamps)\
**Replies:** 2\
**Last updated:** [September 9, 2019, 11:35am UTC](https://discourse.itk.org/t/anatomical-orientation-mhd/2231 "2019-09-09T11:35:26Z")

</div>

Dear all, I am currently saving frames of an image buffer in MHD file format using a similar approach as described in https://itk.org/ITK/help/tutorials.html - Example V. The image data is saved correctly and the images…

---

## [Extracting Header information from DICOM image](https://discourse.itk.org/t/extracting-header-information-from-dicom-image/2187)

<div class="topic-metadata">

**Author:** [@aliu4](https://discourse.itk.org/u/aliu4)\
**Replies:** 10\
**Last updated:** [September 4, 2019, 12:01pm UTC](https://discourse.itk.org/t/extracting-header-information-from-dicom-image/2187 "2019-09-04T12:01:17Z")

</div>

Hello, I am trying to extract the Header information of a DICOM file using ITK.js. I am reading through the documentation, and I do not see anything for reading header data for DICOM. Does ITK.js support reading the head…

---

## [Rigid body registration code](https://discourse.itk.org/t/rigid-body-registration-code/2210)

<div class="topic-metadata">

**Author:** [@RigidReg](https://discourse.itk.org/u/RigidReg)\
**Replies:** 4\
**Last updated:** [September 3, 2019, 6:49pm UTC](https://discourse.itk.org/t/rigid-body-registration-code/2210 "2019-09-03T18:49:12Z")

</div>

Hello, Please excuse me if the following question looks too dumb: So, I would like to implement the simplest intensity-based 3D rigid body within-modality registration (6 parameters), just like between the volumes of a…

---

## [ITK Vessels segmentation code](https://discourse.itk.org/t/itk-vessels-segmentation-code/1923)

<div class="topic-metadata">

**Author:** [@Pooja\_Virkar](https://discourse.itk.org/u/Pooja_Virkar)\
**Replies:** 9\
**Last updated:** [September 3, 2019, 3:11pm UTC](https://discourse.itk.org/t/itk-vessels-segmentation-code/1923 "2019-09-03T15:11:05Z")

</div>

Hello, I am trying to run Vessels segmentation program from https://itk.org/ITKExamples/src/Nonunit/Review/SegmentBloodVesselsWithMultiScaleHessianBasedMeasure/Documentation.html But I am getting following error - f…

---

## [What's wrong with all empty output ?](https://discourse.itk.org/t/whats-wrong-with-all-empty-output/2212)

<div class="topic-metadata">

**Author:** [@lijaying](https://discourse.itk.org/u/lijaying)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 1:13am UTC](https://discourse.itk.org/t/whats-wrong-with-all-empty-output/2212 "2019-09-03T01:13:46Z")

</div>

\#include "itkAffineTransform.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkLinearInterpolateImageFunction.h" #include "itkMatrix.h" #include "itkNIFTIImageIO.h" #include "itkNIFTIImageIO…

---

## [How to store the underlying voxel values into a data structure after reading a nrrd image?](https://discourse.itk.org/t/how-to-store-the-underlying-voxel-values-into-a-data-structure-after-reading-a-nrrd-image/2195)

<div class="topic-metadata">

**Author:** [@keyurs19](https://discourse.itk.org/u/keyurs19)\
**Replies:** 4\
**Last updated:** [August 29, 2019, 8:07pm UTC](https://discourse.itk.org/t/how-to-store-the-underlying-voxel-values-into-a-data-structure-after-reading-a-nrrd-image/2195 "2019-08-29T20:07:41Z")

</div>

Hello everyone, I am a new ITK user. I have to read a .nrrd file into C++ and then calculate the gradient of the values using C++. I was able to read the .nrrd file based on the following code: #include #include #i…

---

## [(Simple)ITK not checking DICOM integrity?](https://discourse.itk.org/t/simple-itk-not-checking-dicom-integrity/2168)

<div class="topic-metadata">

**Author:** [@alkamid](https://discourse.itk.org/u/alkamid)\
**Replies:** 5\
**Last updated:** [August 29, 2019, 1:06am UTC](https://discourse.itk.org/t/simple-itk-not-checking-dicom-integrity/2168 "2019-08-29T01:06:47Z")

</div>

I have a corrupted DICOM series: https://www.dropbox.com/s/i4wdj7ehkivijh5/corrupted\_dicom.tar.bz2?dl=0 There are a couple of slices (z=193-194) with incorrect pixel values. When trying to read the image with pydicom wit…

---

## [How to read/write an ITK TubeSpatialObject？](https://discourse.itk.org/t/how-to-read-write-an-itk-tubespatialobject/2178)

<div class="topic-metadata">

**Author:** [@Barcelona16](https://discourse.itk.org/u/Barcelona16)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 1:59pm UTC](https://discourse.itk.org/t/how-to-read-write-an-itk-tubespatialobject/2178 "2019-08-27T13:59:09Z")

</div>

If i want to read an object like this import itk PixelType = itk.UC Dimension = 3 ReaderType = itk.TubeSpatialObject\[3\] reader = ReaderType.New() reader.GetProperty().SetName(inputImage) Is there a convenient to make i…

---

## [Compile error using code from itkMontage module.](https://discourse.itk.org/t/compile-error-using-code-from-itkmontage-module/2186)

<div class="topic-metadata">

**Author:** [@spic](https://discourse.itk.org/u/spic)\
**Replies:** 6\
**Last updated:** [August 21, 2019, 8:28pm UTC](https://discourse.itk.org/t/compile-error-using-code-from-itkmontage-module/2186 "2019-08-21T20:28:08Z")

</div>

I am trying to run example code given in itkMontage module from here. When I try to compile the code, I am getting the following error. Any pointers to how to solve this error would be a great help. In file included fr…

---

## [Verify itk version on python console](https://discourse.itk.org/t/verify-itk-version-on-python-console/2175)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 6:01pm UTC](https://discourse.itk.org/t/verify-itk-version-on-python-console/2175 "2019-08-21T18:01:34Z")

</div>

Hello, Is there a way to verify the version of itk loaded in a python script ? Thanks

---

## [python example for point set not working with itk 5.0.1](https://discourse.itk.org/t/python-example-for-point-set-not-working-with-itk-5-0-1/2183)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 4:29pm UTC](https://discourse.itk.org/t/python-example-for-point-set-not-working-with-itk-5-0-1/2183 "2019-08-21T16:29:36Z")

</div>

I’m trying to create a point set and I followed the python example here, but there is some “type errors” : itkTemplate.TemplateTypeError: itk.PointSet is not wrapped for input type \`itk.F, int, itk.DefaultStaticMeshTrai…

---

## [Set default pixel type for a resample filter in python](https://discourse.itk.org/t/set-default-pixel-type-for-a-resample-filter-in-python/2179)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 4:08pm UTC](https://discourse.itk.org/t/set-default-pixel-type-for-a-resample-filter-in-python/2179 "2019-08-21T16:08:42Z")

</div>

Hello community, I don’t manage to create an arbitrary pixel from a numpy scalar. I would like to transform the numpy scalar to a pixel, using fill if pixel has multiple modalities px\_type = itk.template(itk\_image)\[1\]\[…

---

## [python ThinPlateSpline and point set](https://discourse.itk.org/t/python-thinplatespline-and-point-set/2185)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 4:00pm UTC](https://discourse.itk.org/t/python-thinplatespline-and-point-set/2185 "2019-08-21T16:00:22Z")

</div>

Hello community, I don’t manage to get the proper point set to work with the tps transform. Here is a minimal example: PixelType = itk.D Dimension = 2 point\_set = itk.PointSet\[PixelType, Dimension\].New() ref\_point\_set…

---

## [Non rigid point set registration?](https://discourse.itk.org/t/non-rigid-point-set-registration/2181)

<div class="topic-metadata">

**Author:** [@aWilson41](https://discourse.itk.org/u/aWilson41)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 1:06pm UTC](https://discourse.itk.org/t/non-rigid-point-set-registration/2181 "2019-08-21T13:06:46Z")

</div>

Does ITK provide non-rigid/deformable point set registration? I can’t seem to find anything on this through google.

---

## [Z spacing in Image Series Reader](https://discourse.itk.org/t/z-spacing-in-image-series-reader/2167)

<div class="topic-metadata">

**Author:** [@alkamid](https://discourse.itk.org/u/alkamid)\
**Replies:** 9\
**Last updated:** [August 21, 2019, 12:59pm UTC](https://discourse.itk.org/t/z-spacing-in-image-series-reader/2167 "2019-08-21T12:59:35Z")

</div>

How is Z spacing determined from a DICOM series, when using SimpleITK’s ImageSeriesReader? It looks like X and Y spacing is taken from Pixel Spacing (0028|0030) field, but I have not been able to find the code for Z spac…

---

## [Image slicing in Python](https://discourse.itk.org/t/image-slicing-in-python/2160)

<div class="topic-metadata">

**Author:** [@AralRalud](https://discourse.itk.org/u/AralRalud)\
**Replies:** 5\
**Last updated:** [August 21, 2019, 11:43am UTC](https://discourse.itk.org/t/image-slicing-in-python/2160 "2019-08-21T11:43:27Z")

</div>

Hi, I have a probably trivial issue, but I can’t wrap my mind around it.I am trying to slice a 3D image using indexing but I get one slice short of what one would expect. After looking into it, it seems the last slice is…

---

## [OpenCV vs ITK](https://discourse.itk.org/t/opencv-vs-itk/2174)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 2:36pm UTC](https://discourse.itk.org/t/opencv-vs-itk/2174 "2019-08-20T14:36:04Z")

</div>

Hi, I am new to Dicom modality image segmentation and analysis. I was playing with Python and opencv for 2D image segmentation. Next I am exploring python with Itk to solve 3D Segmentation problems. Can throw some li…

---

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

---

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

---

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

---

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

---

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

---

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

[Previous page](https://discourse.itk.org/c/beginner-questions/9.md?no_subcategories=false&page=33)

[Next page](https://discourse.itk.org/c/beginner-questions/9.md?no_subcategories=false&page=35)
