# Beginner Questions

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

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

**Page:** 38

---

## [SymmetricEigenAnalysisFixedDimension in Python](https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652)

<div class="topic-metadata">

**Author:** [@vero](https://discourse.itk.org/u/vero)\
**Replies:** 2\
**Last updated:** [March 21, 2019, 7:41pm UTC](https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652 "2019-03-21T19:41:37Z")

</div>

Hey, I’m trying to use SymmetricEigenAnalysisFixedDimension or SymmetricEigenAnalysisFixedDimensionImageFilter in Python by initializing the image filter like in other ITK python example: eig = itk.SymmetricEigenAnaly…

---

## [How to write CMakeLists.txt on my own?](https://discourse.itk.org/t/how-to-write-cmakelists-txt-on-my-own/1691)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 2\
**Last updated:** [March 21, 2019, 1:01pm UTC](https://discourse.itk.org/t/how-to-write-cmakelists-txt-on-my-own/1691 "2019-03-21T13:01:51Z")

</div>

How to write CMakeLists.txt on my own? What are the rules and commands to be used? I am getting a few errors when I do it on my own.

---

## [How to use NumericTraits in itk python binding](https://discourse.itk.org/t/how-to-use-numerictraits-in-itk-python-binding/1689)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 2\
**Last updated:** [March 20, 2019, 6:39pm UTC](https://discourse.itk.org/t/how-to-use-numerictraits-in-itk-python-binding/1689 "2019-03-20T18:39:03Z")

</div>

I’m using itk.GetImageViewFromArray(image) to view an np image as itk image. How to get the type of pixel, and get information about it using NumericTraits ? In C++ I was using for example itk::NumericTraits\<PixelType\>:…

---

## [ITK Pythonic interface - filter output](https://discourse.itk.org/t/itk-pythonic-interface-filter-output/1628)

<div class="topic-metadata">

**Author:** [@mafuentes](https://discourse.itk.org/u/mafuentes)\
**Replies:** 11\
**Last updated:** [March 20, 2019, 12:58pm UTC](https://discourse.itk.org/t/itk-pythonic-interface-filter-output/1628 "2019-03-20T12:58:48Z")

</div>

Hello, with the new wrappers for ITK 5.0 Beta and all the facilities with the new pythonic interface I was wondering how can I especify a filter’s output type on the parameters. The idea is to change this: rescaler = …

---

## [CannySegmentationLevelSetImageFilter in Simple ITK](https://discourse.itk.org/t/cannysegmentationlevelsetimagefilter-in-simple-itk/1688)

<div class="topic-metadata">

**Author:** [@pettaa123](https://discourse.itk.org/u/pettaa123)\
**Replies:** 2\
**Last updated:** [March 19, 2019, 10:29pm UTC](https://discourse.itk.org/t/cannysegmentationlevelsetimagefilter-in-simple-itk/1688 "2019-03-19T22:29:43Z")

</div>

I am thinking about integrating ITK’s CannySegmentationLevelSetImageFilter into an own SimpleITK filter in order to bring it into my csharp code. Is this recommendable? I am asking because I couldn’t find an example on…

---

## [Porting https://itk.org/Wiki/ITK/Examples/Metrics/MeanSquaresImageToImageMetric from C++ to Python](https://discourse.itk.org/t/porting-https-itk-org-wiki-itk-examples-metrics-meansquaresimagetoimagemetric-from-c-to-python/1670)

<div class="topic-metadata">

**Author:** [@nicill](https://discourse.itk.org/u/nicill)\
**Replies:** 8\
**Last updated:** [March 18, 2019, 7:03pm UTC](https://discourse.itk.org/t/porting-https-itk-org-wiki-itk-examples-metrics-meansquaresimagetoimagemetric-from-c-to-python/1670 "2019-03-18T19:03:24Z")

</div>

Hi all, this is my first question here, I hope I understood the rules. I have been using itk (C++ version) for many years now, so I am quite familiar with it. Recently I have been exploring the possibility to use it als…

---

## [any simple example code for learning c++ and ITK for a beginner?](https://discourse.itk.org/t/any-simple-example-code-for-learning-c-and-itk-for-a-beginner/1680)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 1\
**Last updated:** [March 18, 2019, 6:11pm UTC](https://discourse.itk.org/t/any-simple-example-code-for-learning-c-and-itk-for-a-beginner/1680 "2019-03-18T18:11:37Z")

</div>

I am new to c++ and ITK. I learned to build and running examples. I want to write a basic program when I can give my input image(not through command window) directly in the code and do certain changes like scaling,inten…

---

## [ITKTwoProjectionRegistration available as PyPI package?](https://discourse.itk.org/t/itktwoprojectionregistration-available-as-pypi-package/1625)

<div class="topic-metadata">

**Author:** [@kendall](https://discourse.itk.org/u/kendall)\
**Replies:** 5\
**Last updated:** [March 15, 2019, 9:55pm UTC](https://discourse.itk.org/t/itktwoprojectionregistration-available-as-pypi-package/1625 "2019-03-15T21:55:21Z")

</div>

Is the ITKTwoProjectionRegistration module available somewhere on PyPI (ie, can I install it via pip?).

---

## [Registration of dicom series image with another series](https://discourse.itk.org/t/registration-of-dicom-series-image-with-another-series/1667)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 7\
**Last updated:** [March 15, 2019, 1:52pm UTC](https://discourse.itk.org/t/registration-of-dicom-series-image-with-another-series/1667 "2019-03-15T13:52:32Z")

</div>

I have two dicom series images of brain. I want to perform registration between the images in ITK. I wanted to find deformation points first, do transformation, then apply inverse deformation. Suggest me a suitable algor…

---

## [How can I configure ITK for an MFC VS2010 using CMake?](https://discourse.itk.org/t/how-can-i-configure-itk-for-an-mfc-vs2010-using-cmake/1640)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 2\
**Last updated:** [March 7, 2019, 7:40pm UTC](https://discourse.itk.org/t/how-can-i-configure-itk-for-an-mfc-vs2010-using-cmake/1640 "2019-03-07T19:40:11Z")

</div>

Hi. When I set up and generated ITK for VS2010 in CMake, and after compiling in VS2010, I discovered that the default settings in the Properties of the created project are related to the Win32 project type. How can I co…

---

## [Visual Studio RTTI configuration error](https://discourse.itk.org/t/visual-studio-rtti-configuration-error/1620)

<div class="topic-metadata">

**Author:** [@Pooja\_Virkar](https://discourse.itk.org/u/Pooja_Virkar)\
**Replies:** 9\
**Last updated:** [February 26, 2019, 5:48pm UTC](https://discourse.itk.org/t/visual-studio-rtti-configuration-error/1620 "2019-02-26T17:48:21Z")

</div>

---

## [How to build ITK dll?](https://discourse.itk.org/t/how-to-build-itk-dll/1594)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 2\
**Last updated:** [February 12, 2019, 2:29pm UTC](https://discourse.itk.org/t/how-to-build-itk-dll/1594 "2019-02-12T14:29:39Z")

</div>

Hi. I need to build the dinamic link libraries of ITK. My OS is Windows 10 and my IDE is Visual Studio 2010. Thanks.

---

## [ITK python vessel segmentation](https://discourse.itk.org/t/itk-python-vessel-segmentation/1590)

<div class="topic-metadata">

**Author:** [@albert](https://discourse.itk.org/u/albert)\
**Replies:** 4\
**Last updated:** [February 12, 2019, 12:15am UTC](https://discourse.itk.org/t/itk-python-vessel-segmentation/1590 "2019-02-12T00:15:39Z")

</div>

Hi all, I am new to ITK and trying to do some work about brain vessel segmentation using ITK python. But I have no idea how to use those filters such as HessianRecursiveGaussianImageFilter and Hessian3DToVesselnessMeasu…

---

## [Creating a composite Image from multiple blocks](https://discourse.itk.org/t/creating-a-composite-image-from-multiple-blocks/1568)

<div class="topic-metadata">

**Author:** [@spic](https://discourse.itk.org/u/spic)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 9:32pm UTC](https://discourse.itk.org/t/creating-a-composite-image-from-multiple-blocks/1568 "2019-02-08T21:32:00Z")

</div>

I am trying to create a composite image from a number of blocks arranged in a grid. When pasting new block into this composite Image the composite is getting overwritten in the location of first block so I end up with th…

---

## [Is it possible to get a writable array view of a SimpleITK image?](https://discourse.itk.org/t/is-it-possible-to-get-a-writable-array-view-of-a-simpleitk-image/1585)

<div class="topic-metadata">

**Author:** [@david-hoffman](https://discourse.itk.org/u/david-hoffman)\
**Replies:** 10\
**Last updated:** [February 8, 2019, 7:30pm UTC](https://discourse.itk.org/t/is-it-possible-to-get-a-writable-array-view-of-a-simpleitk-image/1585 "2019-02-08T19:30:13Z")

</div>

Following up on this question: https://stackoverflow.com/questions/54557586/does-simpleitk-have-broadcasting/54577094 If GetArrayViewFromImage returned a writable view then you could use numpy broadcasting without issue…

---

## [Error while reading an image with ITK Python](https://discourse.itk.org/t/error-while-reading-an-image-with-itk-python/1560)

<div class="topic-metadata">

**Author:** [@aszmul](https://discourse.itk.org/u/aszmul)\
**Replies:** 4\
**Last updated:** [January 29, 2019, 2:02pm UTC](https://discourse.itk.org/t/error-while-reading-an-image-with-itk-python/1560 "2019-01-29T14:02:23Z")

</div>

Dear All, I am starting using itk with python, so it might sound silly, but I have the following problem. I have installed itk using command: python -m pip install itk The packages have been successfully installed. …

---

## [Read ROI from image from disk in SimpleITK](https://discourse.itk.org/t/read-roi-from-image-from-disk-in-simpleitk/1557)

<div class="topic-metadata">

**Author:** [@rogertrullo](https://discourse.itk.org/u/rogertrullo)\
**Replies:** 1\
**Last updated:** [January 28, 2019, 2:00pm UTC](https://discourse.itk.org/t/read-roi-from-image-from-disk-in-simpleitk/1557 "2019-01-28T14:00:08Z")

</div>

Hi, does anyone know if there is a way to read a subsection of an image (an ROI) without loading the entire image into memory, is it doable in SimpleITK? Thanks!

---

## [How can I get an interpolated value "between" voxels?](https://discourse.itk.org/t/how-can-i-get-an-interpolated-value-between-voxels/1535)

<div class="topic-metadata">

**Author:** [@Alessandro](https://discourse.itk.org/u/Alessandro)\
**Replies:** 6\
**Last updated:** [January 23, 2019, 5:32pm UTC](https://discourse.itk.org/t/how-can-i-get-an-interpolated-value-between-voxels/1535 "2019-01-23T17:32:08Z")

</div>

Hello, I have a 3D image in raw format, the .mhd file is similar to this one: ObjectType = Image NDims = 3 ElementSpacing = 0.031473 0.031473 0.031473 DimSize = 100 100 100 ElementType = MET\_SHORT ElementDataFile = pha…

---

## [Why is pixeSpacing\[2\] not equal to spacing between slices from DICOM tag (0018, 0088) ?](https://discourse.itk.org/t/why-is-pixespacing-2-not-equal-to-spacing-between-slices-from-dicom-tag-0018-0088/1540)

<div class="topic-metadata">

**Author:** [@guo7212](https://discourse.itk.org/u/guo7212)\
**Replies:** 0\
**Last updated:** [January 22, 2019, 3:40am UTC](https://discourse.itk.org/t/why-is-pixespacing-2-not-equal-to-spacing-between-slices-from-dicom-tag-0018-0088/1540 "2019-01-22T03:40:35Z")

</div>

Hi, everyone I read a series of CT DICOM images using ITK. And I get the pixel spacing using the method like pixelSpacing = image-\>GetSpacing(); but the pixelSpacing\[2\] != spacing between slices from DICOM tag(0018, 0…

---

## [mismatch detected for '\_ITERATOR\_DEBUG\_LEVEL': value '2' doesn't match value '0'](https://discourse.itk.org/t/mismatch-detected-for-iterator-debug-level-value-2-doesnt-match-value-0/1533)

<div class="topic-metadata">

**Author:** [@yode](https://discourse.itk.org/u/yode)\
**Replies:** 3\
**Last updated:** [January 19, 2019, 3:37pm UTC](https://discourse.itk.org/t/mismatch-detected-for-iterator-debug-level-value-2-doesnt-match-value-0/1533 "2019-01-19T15:37:46Z")

</div>

I’m a opencv user, I’m first time to use this library. But I meet a problem when I run the first project in my vs2015. This is my screenshoot. Help me please: ps: Include Directories:D:\\soft\\itkbin\\include\\ITK-4.13 L…

---

## [\[SOLVED\]TransformIndexToPhysicalPoint manually](https://discourse.itk.org/t/solved-transformindextophysicalpoint-manually/1031)

<div class="topic-metadata">

**Author:** [@rolof](https://discourse.itk.org/u/rolof)\
**Replies:** 9\
**Last updated:** [January 9, 2019, 5:59pm UTC](https://discourse.itk.org/t/solved-transformindextophysicalpoint-manually/1031 "2019-01-09T17:59:03Z")

</div>

Hi all, I have a question How could I do the things that TransformIndexToPhysicalPoint does but manually? I know that here (https://itk.org/Doxygen/html/Examples\_2DataRepresentation\_2Image\_2Image4\_8cxx-example.html) I …

---

## [Error during registration](https://discourse.itk.org/t/error-during-registration/1510)

<div class="topic-metadata">

**Author:** [@ChanghongLi](https://discourse.itk.org/u/ChanghongLi)\
**Replies:** 2\
**Last updated:** [January 9, 2019, 2:38pm UTC](https://discourse.itk.org/t/error-during-registration/1510 "2019-01-09T14:38:32Z")

</div>

Dear experts, Now I am using ANTS toolbox, which is based on the ITK, to registe my images to the template but i found the following error: \*\*\*\*=============================================================== \*\*\*\* WARN…

---

## [Reference count with Python](https://discourse.itk.org/t/reference-count-with-python/1483)

<div class="topic-metadata">

**Author:** [@finetjul](https://discourse.itk.org/u/finetjul)\
**Replies:** 7\
**Last updated:** [December 21, 2018, 9:12pm UTC](https://discourse.itk.org/t/reference-count-with-python/1483 "2018-12-21T21:12:12Z")

</div>

Hi all, In Python, I have the following code: def generateSource(): reader = itk.ImageReader\[ImageType\].New() ... itkToVtkFilter = itk.ImageToVTKImageFilter\[ImageType\].New() itkToVtkFilter.SetInput(re…

---

## [Saving 4D dicom from3D volumes](https://discourse.itk.org/t/saving-4d-dicom-from3d-volumes/1472)

<div class="topic-metadata">

**Author:** [@swetha.bsharma](https://discourse.itk.org/u/swetha.bsharma)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 5:22am UTC](https://discourse.itk.org/t/saving-4d-dicom-from3d-volumes/1472 "2018-12-17T05:22:57Z")

</div>

Hello, I have multiple 3D volume series acquired at different timestamp , the timestamps only differ by a negligible amount in units of seconds. I have collated the 3D volumes into a 4D image of type itk::Image\< Pixe…

---

## [itk.MetaDataObject.GetMetaDataObjectValue() is missing in Python](https://discourse.itk.org/t/itk-metadataobject-getmetadataobjectvalue-is-missing-in-python/1470)

<div class="topic-metadata">

**Author:** [@finetjul](https://discourse.itk.org/u/finetjul)\
**Replies:** 2\
**Last updated:** [December 13, 2018, 11:07am UTC](https://discourse.itk.org/t/itk-metadataobject-getmetadataobjectvalue-is-missing-in-python/1470 "2018-12-13T11:07:03Z")

</div>

Hi, When using ITK with Python, how can you get the DICOM Tags of a DICOM directory ? It seems that itk.MetaDataObject.GetMetaDataObjectValue() is missing. dicomReader = itk.ImageSeriesReader\[ImageType\].New() dicomRea…

---

## [Data type for PET and MR image](https://discourse.itk.org/t/data-type-for-pet-and-mr-image/1468)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 2\
**Last updated:** [December 12, 2018, 12:32am UTC](https://discourse.itk.org/t/data-type-for-pet-and-mr-image/1468 "2018-12-12T00:32:32Z")

</div>

Hi all, I know “signed short” is usually assigned for a CT image in ITK because it’s voxel values are 16 bits integers. But how about PET image and MR image, should I also use “signed short” for them? Or use “float” ins…

---

## [Build Error MITK 2016.11: ITK targets not defined](https://discourse.itk.org/t/build-error-mitk-2016-11-itk-targets-not-defined/626)

<div class="topic-metadata">

**Author:** [@norb](https://discourse.itk.org/u/norb)\
**Replies:** 3\
**Last updated:** [November 27, 2018, 7:08pm UTC](https://discourse.itk.org/t/build-error-mitk-2016-11-itk-targets-not-defined/626 "2018-11-27T19:08:43Z")

</div>

Hello, as Dzenan suggests in the mailing list, i write my question here to possibly get more attention or answers :slight\_smile: Original post on mailing list: Hello, I tried to build MITK (v2016.11) from source wit…

---

## [Orientation in Diffusion Tensor Imaging file (DTI) .nii](https://discourse.itk.org/t/orientation-in-diffusion-tensor-imaging-file-dti-nii/1437)

<div class="topic-metadata">

**Author:** [@yurie](https://discourse.itk.org/u/yurie)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 3:40pm UTC](https://discourse.itk.org/t/orientation-in-diffusion-tensor-imaging-file-dti-nii/1437 "2018-11-23T15:40:01Z")

</div>

Hello Everyone! I have two .nii files, one containing a tumor segmentation, and one contains a DTI dataset. These two datasets have the same orientations/offsets in their metadata. I run numerical simulations using the …

---

## [Aligning to center location and orientation](https://discourse.itk.org/t/aligning-to-center-location-and-orientation/1439)

<div class="topic-metadata">

**Author:** [@ZA\_S](https://discourse.itk.org/u/ZA_S)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 2:55pm UTC](https://discourse.itk.org/t/aligning-to-center-location-and-orientation/1439 "2018-11-23T14:55:42Z")

</div>

Hello , I have head CT volumes and I would like to align each volume to the centre of the volume and same head orientation. Instead of doing registration, I am looking for something just rotating and moving to the centr…

---

## [Installing itk-vtkglue module using Pip](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418)

<div class="topic-metadata">

**Author:** [@Ruurdk](https://discourse.itk.org/u/Ruurdk)\
**Replies:** 7\
**Last updated:** [November 19, 2018, 4:29pm UTC](https://discourse.itk.org/t/installing-itk-vtkglue-module-using-pip/1418 "2018-11-19T16:29:39Z")

</div>

Hi all, I am trying to install the itk-vtkglue module using pip, as I would like to use the transform inverse functions from vtk on some .nrrd data. However, when I use “python -m pip install itk-vtkglue” I get the foll…

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

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