# Beginner Questions

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

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

**Page:** 41

---

## [registration of 50 3D scans in order to create an average scan](https://discourse.itk.org/t/registration-of-50-3d-scans-in-order-to-create-an-average-scan/985)

<div class="topic-metadata">

**Author:** [@vmatyas](https://discourse.itk.org/u/vmatyas)\
**Replies:** 2\
**Last updated:** [June 6, 2018, 9:05am UTC](https://discourse.itk.org/t/registration-of-50-3d-scans-in-order-to-create-an-average-scan/985 "2018-06-06T09:05:34Z")

</div>

Hi All, I will have 6x50 3D scans of feet. I need to register the 50 scans in each group so the corresponding vertices align so I can calculate average foot scan for each group. Any ideas how I can do non-rigid transfo…

---

## [multiple constructor, how to do with the factory method and itknewmacro](https://discourse.itk.org/t/multiple-constructor-how-to-do-with-the-factory-method-and-itknewmacro/968)

<div class="topic-metadata">

**Author:** [@pdeman](https://discourse.itk.org/u/pdeman)\
**Replies:** 1\
**Last updated:** [May 31, 2018, 9:14pm UTC](https://discourse.itk.org/t/multiple-constructor-how-to-do-with-the-factory-method-and-itknewmacro/968 "2018-05-31T21:14:19Z")

</div>

Hi, I have never used factory method before and I am a little lost. I want to define a second constructor with different input parameters. the constructor is called when calling ::New() ? how do I pass the constructo…

---

## [DICOM data \<--\> buffer using ITK/GDCM](https://discourse.itk.org/t/dicom-data-buffer-using-itk-gdcm/962)

<div class="topic-metadata">

**Author:** [@Fijoy\_Vadakkumpadan](https://discourse.itk.org/u/Fijoy_Vadakkumpadan)\
**Replies:** 0\
**Last updated:** [May 30, 2018, 4:06pm UTC](https://discourse.itk.org/t/dicom-data-buffer-using-itk-gdcm/962 "2018-05-30T16:06:20Z")

</div>

Hello, I need to write/read arbitrary DICOM Data Sets and Data Elements to/from memory buffers to facilitate data exchange between nodes in a distributed application. The Data Elements I’m interested in include Sequence…

---

## [label map overlay .. I dont' understand the problem ?](https://discourse.itk.org/t/label-map-overlay-i-dont-understand-the-problem/950)

<div class="topic-metadata">

**Author:** [@rcatwood](https://discourse.itk.org/u/rcatwood)\
**Replies:** 4\
**Last updated:** [May 25, 2018, 6:35pm UTC](https://discourse.itk.org/t/label-map-overlay-i-dont-understand-the-problem/950 "2018-05-25T18:35:35Z")

</div>

For some reason the LabelMapOverlay doesn’t work on my label map created from the ChangeLabel filter. I also tried running it directly on the output of ConnectedComponent() with the same result. What is the problem? how…

---

## [Python sitk ExtractImageFilter -- basic usage help??](https://discourse.itk.org/t/python-sitk-extractimagefilter-basic-usage-help/949)

<div class="topic-metadata">

**Author:** [@rcatwood](https://discourse.itk.org/u/rcatwood)\
**Replies:** 3\
**Last updated:** [May 25, 2018, 2:36pm UTC](https://discourse.itk.org/t/python-sitk-extractimagefilter-basic-usage-help/949 "2018-05-25T14:36:00Z")

</div>

I’m sorry if I’m abit thick, but this doesn’t work. This is the distributed SimpleITK – updated yesterday , in the Python 2.7 version on Linux SimpleITK Version: 1.1.0 (ITK 4.13) Compiled: Mar 26 2018 15:04:35 I trie…

---

## [output itk built version](https://discourse.itk.org/t/output-itk-built-version/940)

<div class="topic-metadata">

**Author:** [@pdeman](https://discourse.itk.org/u/pdeman)\
**Replies:** 8\
**Last updated:** [May 18, 2018, 11:58am UTC](https://discourse.itk.org/t/output-itk-built-version/940 "2018-05-18T11:58:54Z")

</div>

Hi, I have some code using itk libraries, and I would like to display itk built version when calling them. #include \<itkVersion.h\> bool myClass::myClassFuncion() { //get itk version itk::Version whichItk; std::cou…

---

## [Building and Compiling with GCC 8.1](https://discourse.itk.org/t/building-and-compiling-with-gcc-8-1/934)

<div class="topic-metadata">

**Author:** [@tubbytoad](https://discourse.itk.org/u/tubbytoad)\
**Replies:** 9\
**Last updated:** [May 16, 2018, 8:47pm UTC](https://discourse.itk.org/t/building-and-compiling-with-gcc-8-1/934 "2018-05-16T20:47:05Z")

</div>

I am having an issue building and compiling ITK-4.13 with GCC 8.1.0. I managed to build ITK by temporarily downgrading my GCC version but now since I have upgraded again ITK won’t compile. Any guidance on this would be a…

---

## [Regularization in ITK](https://discourse.itk.org/t/regularization-in-itk/568)

<div class="topic-metadata">

**Author:** [@HsuehWen](https://discourse.itk.org/u/HsuehWen)\
**Replies:** 8\
**Last updated:** [May 11, 2018, 5:32pm UTC](https://discourse.itk.org/t/regularization-in-itk/568 "2018-05-11T17:32:53Z")

</div>

Hi, I’m working on B-Spline registration. I found the some of the moving images are distorted too much although that do lead to a lower cost function. I think the standard way to deal with these kind of problem is addin…

---

## [animation with bspline registration](https://discourse.itk.org/t/animation-with-bspline-registration/915)

<div class="topic-metadata">

**Author:** [@henrisco82](https://discourse.itk.org/u/henrisco82)\
**Replies:** 11\
**Last updated:** [May 10, 2018, 4:20pm UTC](https://discourse.itk.org/t/animation-with-bspline-registration/915 "2018-05-10T16:20:12Z")

</div>

Please I would like to make an animation suitable in gif format to see the different stages the registration does. I am using the example from here http://simpleitk.readthedocs.io/en/master/Examples/ImageRegistrationMe…

---

## [Extract 2D image from 3D image](https://discourse.itk.org/t/extract-2d-image-from-3d-image/909)

<div class="topic-metadata">

**Author:** [@mabou](https://discourse.itk.org/u/mabou)\
**Replies:** 1\
**Last updated:** [May 8, 2018, 2:57pm UTC](https://discourse.itk.org/t/extract-2d-image-from-3d-image/909 "2018-05-08T14:57:20Z")

</div>

Hello everyone, I have used the code in https://itk.org/ITKExamples/src/Filtering/ImageGrid/ProcessA2DSliceOfA3DImage/Documentation.html to extract 2D image from 3D image (mainly NIFTI image). I had this exception afte…

---

## [Computed tomography scan resampling](https://discourse.itk.org/t/computed-tomography-scan-resampling/905)

<div class="topic-metadata">

**Author:** [@lungradiology](https://discourse.itk.org/u/lungradiology)\
**Replies:** 4\
**Last updated:** [May 6, 2018, 9:49pm UTC](https://discourse.itk.org/t/computed-tomography-scan-resampling/905 "2018-05-06T21:49:14Z")

</div>

Hi, I am having a 3D CT scans from which I need to extract some coronal views according to provided coordinates. Also sometimes I need to adjust extracted slice pixel spacings. So my question is what is the right order …

---

## [Where is the documentation for uploaded test data?](https://discourse.itk.org/t/where-is-the-documentation-for-uploaded-test-data/877)

<div class="topic-metadata">

**Author:** [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Replies:** 9\
**Last updated:** [May 2, 2018, 4:41pm UTC](https://discourse.itk.org/t/where-is-the-documentation-for-uploaded-test-data/877 "2018-05-02T16:41:49Z")

</div>

I have encounter a lot of old documentation that indicate that new baselines should be automatically uploaded: https://www.google.com/search?client=safari&rls=en&q=ITK+upload+test+data&ie=UTF-8&oe=UTF-8 I believe thi…

---

## [Spline smoothing of a 3D image or equivalent ?](https://discourse.itk.org/t/spline-smoothing-of-a-3d-image-or-equivalent/889)

<div class="topic-metadata">

**Author:** [@asertyuio](https://discourse.itk.org/u/asertyuio)\
**Replies:** 0\
**Last updated:** [May 2, 2018, 9:12am UTC](https://discourse.itk.org/t/spline-smoothing-of-a-3d-image-or-equivalent/889 "2018-05-02T09:12:01Z")

</div>

Dear All, I have trouble finding a image smoothing filter that uses splines. There are several classes using spline, but no smoothing! Do you have any idea on how I could get this to work ? Thanks, Yann

---

## [Can I analyze the thickness of a stl model, and then showed with a color map.](https://discourse.itk.org/t/can-i-analyze-the-thickness-of-a-stl-model-and-then-showed-with-a-color-map/880)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.itk.org/u/timeanddoctor)\
**Replies:** 1\
**Last updated:** [May 1, 2018, 4:10pm UTC](https://discourse.itk.org/t/can-i-analyze-the-thickness-of-a-stl-model-and-then-showed-with-a-color-map/880 "2018-05-01T16:10:05Z")

</div>

Can I analyze the thickness of a stl model, and then showed with a color map. The distance between the two sides of an object. \[2018-04-30\_215013\]

---

## [Problem in parsing ITK\_LIBRARIES](https://discourse.itk.org/t/problem-in-parsing-itk-libraries/874)

<div class="topic-metadata">

**Author:** [@mabou](https://discourse.itk.org/u/mabou)\
**Replies:** 7\
**Last updated:** [April 27, 2018, 3:14pm UTC](https://discourse.itk.org/t/problem-in-parsing-itk-libraries/874 "2018-04-27T15:14:59Z")

</div>

I am trying to run a simple HelloWorld program, and make an inclusion of header file of ITK: itkImage.h. Running cmake …/src to build the Makefile is okay. But running make all gives this error: /src/HelloWorldTwo.cpp:1…

---

## [can't iterate over simple image](https://discourse.itk.org/t/cant-iterate-over-simple-image/865)

<div class="topic-metadata">

**Author:** [@antoine.letouzey](https://discourse.itk.org/u/antoine.letouzey)\
**Replies:** 3\
**Last updated:** [April 24, 2018, 1:53pm UTC](https://discourse.itk.org/t/cant-iterate-over-simple-image/865 "2018-04-24T13:53:57Z")

</div>

I have a 3d boolean image and would like to compute the number of non zero voxels. I wrote this simple code that is supposed to iterate over the whole image and update a counter variable. using BoolImageType = itk::Ima…

---

## [Suggestion for how making GUI for itk](https://discourse.itk.org/t/suggestion-for-how-making-gui-for-itk/858)

<div class="topic-metadata">

**Author:** [@rasoul](https://discourse.itk.org/u/rasoul)\
**Replies:** 4\
**Last updated:** [April 20, 2018, 1:22pm UTC](https://discourse.itk.org/t/suggestion-for-how-making-gui-for-itk/858 "2018-04-20T13:22:32Z")

</div>

Hi every one I wanna make a GUI for itk and vtk libraries. Like what 3d\_ slicer provides us, but my own one. What do you suggest me?

---

## [Problems with Python 3](https://discourse.itk.org/t/problems-with-python-3/827)

<div class="topic-metadata">

**Author:** [@bonisthegreat](https://discourse.itk.org/u/bonisthegreat)\
**Replies:** 5\
**Last updated:** [April 14, 2018, 8:22am UTC](https://discourse.itk.org/t/problems-with-python-3/827 "2018-04-14T08:22:31Z")

</div>

Hello there! I just updated my itk version from the latest available for python3.4 (https://pypi.python.org/pypi/itk) but Im not being able to import it. Has the import name changed? Thanks in advanced!

---

## [sitk.ComposeImageFilter with list of images (python)](https://discourse.itk.org/t/sitk-composeimagefilter-with-list-of-images-python/824)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 5\
**Last updated:** [April 6, 2018, 1:12pm UTC](https://discourse.itk.org/t/sitk-composeimagefilter-with-list-of-images-python/824 "2018-04-06T13:12:27Z")

</div>

Hello! I am trying to use the ComposeImageFilter to combine three grayscale volumes into an RGB volume. All my images have the same metadata in regards of origin, spacing, dimensions,etc… This is what I am doing: def …

---

## [Runtime Error trying to use the LabelMapToBinaryImageFilter in SimpleITK](https://discourse.itk.org/t/runtime-error-trying-to-use-the-labelmaptobinaryimagefilter-in-simpleitk/828)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 4\
**Last updated:** [April 6, 2018, 1:02am UTC](https://discourse.itk.org/t/runtime-error-trying-to-use-the-labelmaptobinaryimagefilter-in-simpleitk/828 "2018-04-06T01:02:15Z")

</div>

Hello, I am trying to combine multiple images (same spacing, dimensions, etc.) Each image contains a 1 for object and 0 for background and these are 3D volumes. this is my code: def labels\_to\_binary\_image(image\_list):…

---

## [ImageRegionIterator object in python](https://discourse.itk.org/t/imageregioniterator-object-in-python/818)

<div class="topic-metadata">

**Author:** [@lwyyy](https://discourse.itk.org/u/lwyyy)\
**Replies:** 2\
**Last updated:** [April 4, 2018, 9:52am UTC](https://discourse.itk.org/t/imageregioniterator-object-in-python/818 "2018-04-04T09:52:05Z")

</div>

Hi, I installed ITK on mac python 2.7 using command “python -m pip install itk”, and when I wanted to create an ImageRegionIterator object, it had an error – “AttributeError: ‘LazyITKModule’ object has no attribute ‘Ima…

---

## [Are the vectors defining the Direction of a SimpleITK image normalized?](https://discourse.itk.org/t/are-the-vectors-defining-the-direction-of-a-simpleitk-image-normalized/810)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 1\
**Last updated:** [March 30, 2018, 1:15pm UTC](https://discourse.itk.org/t/are-the-vectors-defining-the-direction-of-a-simpleitk-image-normalized/810 "2018-03-30T13:15:58Z")

</div>

HI! I would like to know if the vectors that define the Direction of a SimpleITK image are normalized or not. I am trying to use the method SetDirection but the documentation is not clear about this: \[image\] Whereas i…

---

## [How to crop a 3D image with a specified size?](https://discourse.itk.org/t/how-to-crop-a-3d-image-with-a-specified-size/715)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 10\
**Last updated:** [March 29, 2018, 1:50pm UTC](https://discourse.itk.org/t/how-to-crop-a-3d-image-with-a-specified-size/715 "2018-03-29T13:50:08Z")

</div>

HI, I have a 3D image stacked with 2D images. I want to crop the image in the middle. Can you give me some examples to do it using ITK?

---

## [Integrating with a PACS system](https://discourse.itk.org/t/integrating-with-a-pacs-system/805)

<div class="topic-metadata">

**Author:** [@Fijoy\_Vadakkumpadan](https://discourse.itk.org/u/Fijoy_Vadakkumpadan)\
**Replies:** 3\
**Last updated:** [March 28, 2018, 8:37pm UTC](https://discourse.itk.org/t/integrating-with-a-pacs-system/805 "2018-03-28T20:37:20Z")

</div>

Hello, Does ITK provide APIs or classes that I can use to communicate with a PACS/DICOM server? If not, does the GDCM library that ships with ITK provide this functionality? If yes either way, do we have C++ examples so…

---

## [Is MultiScaleHessianBasedMeasureImageFilter in python bindings?](https://discourse.itk.org/t/is-multiscalehessianbasedmeasureimagefilter-in-python-bindings/794)

<div class="topic-metadata">

**Author:** [@nicoco](https://discourse.itk.org/u/nicoco)\
**Replies:** 10\
**Last updated:** [March 28, 2018, 4:16pm UTC](https://discourse.itk.org/t/is-multiscalehessianbasedmeasureimagefilter-in-python-bindings/794 "2018-03-28T16:16:19Z")

</div>

Hello, I need to use the MultiScaleHessianBasedMeasureImageFilter in python. In the past I was using a compiled-by-me version of ITK with python bindings and my scripts were doing fine. I recently switched to the pytho…

---

## [resampling with simpleitk](https://discourse.itk.org/t/resampling-with-simpleitk/790)

<div class="topic-metadata">

**Author:** [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Replies:** 5\
**Last updated:** [March 21, 2018, 9:09pm UTC](https://discourse.itk.org/t/resampling-with-simpleitk/790 "2018-03-21T21:09:59Z")

</div>

Hi iTK! I am new to SimpleITK and I am working in Python. I have a NRRD volume that I want to reslice according to the origin,spacing and dimensions of a second NRRD volume. I am trying to figure this out. Is there a wa…

---

## [New to ITK, facing 2 errors while compiling](https://discourse.itk.org/t/new-to-itk-facing-2-errors-while-compiling/769)

<div class="topic-metadata">

**Author:** [@harshameshram08](https://discourse.itk.org/u/harshameshram08)\
**Replies:** 4\
**Last updated:** [March 14, 2018, 3:05pm UTC](https://discourse.itk.org/t/new-to-itk-facing-2-errors-while-compiling/769 "2018-03-14T15:05:02Z")

</div>

Sir, I am new to ITK 4.13.0 software and using Cmake 3.10.2 to build itk but facing 2 errors while configuring it. Two errors are as follows CMake Error at Modules/ThirdParty/VNL/src/vxl/config/cmake/config/VXLIntros…

---

## [Write to output volume slice by slice or subvolume by subvolume in a pipeline](https://discourse.itk.org/t/write-to-output-volume-slice-by-slice-or-subvolume-by-subvolume-in-a-pipeline/760)

<div class="topic-metadata">

**Author:** [@hellman](https://discourse.itk.org/u/hellman)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 1:19pm UTC](https://discourse.itk.org/t/write-to-output-volume-slice-by-slice-or-subvolume-by-subvolume-in-a-pipeline/760 "2018-03-13T13:19:59Z")

</div>

Hi all, I have 3D data on which I want to do operations that are independent of each other along the third dimension. I could for example work independently on 2D slices in the two first dimensions or on subvolumes whic…

---

## [Convert scalar image into image of vectors](https://discourse.itk.org/t/convert-scalar-image-into-image-of-vectors/753)

<div class="topic-metadata">

**Author:** [@Fijoy\_Vadakkumpadan](https://discourse.itk.org/u/Fijoy_Vadakkumpadan)\
**Replies:** 1\
**Last updated:** [March 9, 2018, 4:59pm UTC](https://discourse.itk.org/t/convert-scalar-image-into-image-of-vectors/753 "2018-03-09T16:59:30Z")

</div>

Hello, Is there a filter or pipeline of filters that I can use to convert a scalar image into an image of vectors, each vector having just one component? For example, I want to convert itk::Image\<unsigned char, 3\> to i…

---

## [Can I register between 2d images and 3d model](https://discourse.itk.org/t/can-i-register-between-2d-images-and-3d-model/755)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.itk.org/u/timeanddoctor)\
**Replies:** 1\
**Last updated:** [March 12, 2018, 1:52pm UTC](https://discourse.itk.org/t/can-i-register-between-2d-images-and-3d-model/755 "2018-03-12T13:52:49Z")

</div>

In order to surgery navigation, can I register 2d images by intraoperative X-ray with the preoperative CT (DICOM). There is no O-army scanner in my hospital, and a preoperative CT of spinal is extremly significant.So, I…

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

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