# Beginner Questions

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

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

**Page:** 28

---

## [weird compile errors when setting -DCMAKE\_CXX\_STANDARD=17](https://discourse.itk.org/t/weird-compile-errors-when-setting-dcmake-cxx-standard-17/3094)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 6\
**Last updated:** [June 16, 2020, 2:32am UTC](https://discourse.itk.org/t/weird-compile-errors-when-setting-dcmake-cxx-standard-17/3094 "2020-06-16T02:32:07Z")

</div>

gcc-10 on ubuntu 18.04 When the python wrappers are selected be built and CMAKE\_CXX\_STANDARD=17 I get weird error about type\_traits way down low in the c++ standard library. I think it has to do with the python binding…

---

## [Multi stage composite transform](https://discourse.itk.org/t/multi-stage-composite-transform/3181)

<div class="topic-metadata">

**Author:** [@lucilla7](https://discourse.itk.org/u/lucilla7)\
**Replies:** 6\
**Last updated:** [June 14, 2020, 10:08pm UTC](https://discourse.itk.org/t/multi-stage-composite-transform/3181 "2020-06-14T22:08:48Z")

</div>

Hello to all, I am trying to write a very simple gui that allows to choose to cancatenate different types of trasforms (rigid, affine and elastic) with different parameters/metrics/optimizers and save the tfm file. I tr…

---

## [The information regarding txt file in paraview](https://discourse.itk.org/t/the-information-regarding-txt-file-in-paraview/3153)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 5\
**Last updated:** [June 14, 2020, 7:38pm UTC](https://discourse.itk.org/t/the-information-regarding-txt-file-in-paraview/3153 "2020-06-14T19:38:32Z")

</div>

Hi, I opened VTK file from registration in paraview and created a glyph and export the txt file which was for deformation field. Does anyone know that the last three columns show the deformed points or I have to apply f…

---

## [How to use Image Iterators in right way](https://discourse.itk.org/t/how-to-use-image-iterators-in-right-way/3171)

<div class="topic-metadata">

**Author:** [@Amnesie](https://discourse.itk.org/u/Amnesie)\
**Replies:** 7\
**Last updated:** [June 13, 2020, 2:06pm UTC](https://discourse.itk.org/t/how-to-use-image-iterators-in-right-way/3171 "2020-06-13T14:06:48Z")

</div>

Hello everyone, i have noticed if i use for-loop across the image to get the every pixel value is time-consuming and inefficient,and that is also be mentioned in the user guide. I read this page https://itk.org/Doxygen…

---

## [AttributeError: module 'itk.ITKClassifiersPython' has no attribute 'swig'](https://discourse.itk.org/t/attributeerror-module-itk-itkclassifierspython-has-no-attribute-swig/3168)

<div class="topic-metadata">

**Author:** [@juccapirama](https://discourse.itk.org/u/juccapirama)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 1:56pm UTC](https://discourse.itk.org/t/attributeerror-module-itk-itkclassifierspython-has-no-attribute-swig/3168 "2020-06-11T13:56:14Z")

</div>

Hello, I recently updated my ITK to ITK 5.1.0 release with Anaconda and i wanted to do some tests with codes that i’ve already had and were working. The code i’m using is basically doing a segmentation with different f…

---

## [itkGPUDemonsRegistrationFilterTest fails](https://discourse.itk.org/t/itkgpudemonsregistrationfiltertest-fails/3160)

<div class="topic-metadata">

**Author:** [@ktsumura](https://discourse.itk.org/u/ktsumura)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 5:43pm UTC](https://discourse.itk.org/t/itkgpudemonsregistrationfiltertest-fails/3160 "2020-06-10T17:43:33Z")

</div>

Hi, I run itkGPUDemonsRegistrationFilterTest via ITKGPUPDEDeformableRegistrationTestDriver, and the GPU registration seemed not working. The result of GPU is almost the same as the moving image, even though the result o…

---

## [pyramidal image format for volumes](https://discourse.itk.org/t/pyramidal-image-format-for-volumes/3146)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 4\
**Last updated:** [June 10, 2020, 2:54pm UTC](https://discourse.itk.org/t/pyramidal-image-format-for-volumes/3146 "2020-06-10T14:54:35Z")

</div>

I have used the tiff format for looking at pyramidal (tiled) 2-D images that help deal with the not being able to hold all of the data in memory at the same time, is there an equivalent or similar way to deal with really…

---

## [KeyError: 'hessian\_recursive\_gaussian\_image\_filter'](https://discourse.itk.org/t/keyerror-hessian-recursive-gaussian-image-filter/3077)

<div class="topic-metadata">

**Author:** [@Kashyap](https://discourse.itk.org/u/Kashyap)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 2:40pm UTC](https://discourse.itk.org/t/keyerror-hessian-recursive-gaussian-image-filter/3077 "2020-06-10T14:40:43Z")

</div>

I am following along the Segment Blood Vessels tutorial in Python. I installed itk itk-5.1.0 in an anconda enviornment. When running the tutorial I get the following error: ---------------------------------------------…

---

## [Problem with Building ITK with Module\_ItkVtkGlue = ON](https://discourse.itk.org/t/problem-with-building-itk-with-module-itkvtkglue-on/2315)

<div class="topic-metadata">

**Author:** [@Phong\_Tran](https://discourse.itk.org/u/Phong_Tran)\
**Replies:** 8\
**Last updated:** [June 10, 2020, 2:38pm UTC](https://discourse.itk.org/t/problem-with-building-itk-with-module-itkvtkglue-on/2315 "2020-06-10T14:38:49Z")

</div>

Hi All, I got a problem when building ITK in release (version 5.10 in github: https://github.com/InsightSoftwareConsortium/ITK) with setting Module\_ItkVtkGlue = ON. Actually I set VTK\_DIR points to the my latest install…

---

## [SimpleITK image interpolation, PhysicalPointSource example](https://discourse.itk.org/t/simpleitk-image-interpolation-physicalpointsource-example/3158)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 1\
**Last updated:** [June 9, 2020, 7:36pm UTC](https://discourse.itk.org/t/simpleitk-image-interpolation-physicalpointsource-example/3158 "2020-06-09T19:36:35Z")

</div>

Hi all, sorry for a such a primitive question! and I hope I am in the right forum! I am trying to follow the python program for image interpolation, I have created PhysicalPointSource pattern and could show the image u…

---

## [Slicer 4.10.2 missing editor module ?!](https://discourse.itk.org/t/slicer-4-10-2-missing-editor-module/3152)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 6:36pm UTC](https://discourse.itk.org/t/slicer-4-10-2-missing-editor-module/3152 "2020-06-09T18:36:53Z")

</div>

hi all, I am pretty new to slicer and this is my first time to use it. I could not find editor in modules pull down list, there is one module Called segmentation editor but that is different than Editor, I tried to inst…

---

## [Error using ITK::ImageFileWriter in QtApplication in Ubuntu](https://discourse.itk.org/t/error-using-itk-imagefilewriter-in-qtapplication-in-ubuntu/3157)

<div class="topic-metadata">

**Author:** [@FabianHeu](https://discourse.itk.org/u/FabianHeu)\
**Replies:** 1\
**Last updated:** [June 9, 2020, 4:02pm UTC](https://discourse.itk.org/t/error-using-itk-imagefilewriter-in-qtapplication-in-ubuntu/3157 "2020-06-09T16:02:37Z")

</div>

we are using C++, Ubuntu 18.04, GCC I got a weird error using the ITK::ImageFileWriter. We are creating an nrrd file like in the example on https://itk.org/ITKExamples/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/Document…

---

## [How to do Ascent with RegularStepGradientDescentOptimizerv4](https://discourse.itk.org/t/how-to-do-ascent-with-regularstepgradientdescentoptimizerv4/3150)

<div class="topic-metadata">

**Author:** [@vnpavanelli](https://discourse.itk.org/u/vnpavanelli)\
**Replies:** 2\
**Last updated:** [June 5, 2020, 7:35pm UTC](https://discourse.itk.org/t/how-to-do-ascent-with-regularstepgradientdescentoptimizerv4/3150 "2020-06-05T19:35:13Z")

</div>

The RegularStepGradientDescentOptimizer had member functions to set Maximize or Minimize mode, how this can be made with RegularStepGradientDescentOptimizerv4? I’m thinking about changing my metric function in the Updat…

---

## [Set sitk::Image pixels](https://discourse.itk.org/t/set-sitk-image-pixels/3145)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 3\
**Last updated:** [June 5, 2020, 1:28pm UTC](https://discourse.itk.org/t/set-sitk-image-pixels/3145 "2020-06-05T13:28:38Z")

</div>

I have a VTK volume (CBCT), and I converted into sitk::Image. Ok, Now, I want to melt down some pixels there, I mean to setup some pixels as air. For that I have wrote (pseudocode): sitk::Image img = FromVTKVolume(); wh…

---

## [Filter to get data around a point](https://discourse.itk.org/t/filter-to-get-data-around-a-point/3141)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 6:57am UTC](https://discourse.itk.org/t/filter-to-get-data-around-a-point/3141 "2020-06-03T06:57:09Z")

</div>

Which ITK/SimpleITK filter can cut down a bit of volume and let the rest as it is ? To be more specific: user choose a point, 3d point. And I am intend to use this point into a filter that will make a hole around that po…

---

## [SimpleITK installation in anaconda environment 2](https://discourse.itk.org/t/simpleitk-installation-in-anaconda-environment-2/3109)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 1:49pm UTC](https://discourse.itk.org/t/simpleitk-installation-in-anaconda-environment-2/3109 "2020-06-02T13:49:06Z")

</div>

Hi all, I am trying to install SimpleITK in the following environment: Virtual Environment: Conda (Anaconda3, pyton3) 2.check the binary installation in the anaconda and it seems all well! I tried to write a simple p…

---

## [Algorithm used for growing seeds](https://discourse.itk.org/t/algorithm-used-for-growing-seeds/3134)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 5\
**Last updated:** [June 2, 2020, 2:49am UTC](https://discourse.itk.org/t/algorithm-used-for-growing-seeds/3134 "2020-06-02T02:49:47Z")

</div>

I’ve seen here an example of how to segment a liver with 3ds slicer: https://www.youtube.com/watch?v=R-lBsqAvSTA (at the end of the movie is liver isolation). And I saw that is used a lot of seeds points for inside liv…

---

## [Problem in spacing and origin](https://discourse.itk.org/t/problem-in-spacing-and-origin/3137)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 7:44pm UTC](https://discourse.itk.org/t/problem-in-spacing-and-origin/3137 "2020-06-01T19:44:18Z")

</div>

Hi all, I am using thinplate spline algorithm to deform my landmarks. I have landmarks’ coordinates in index format. The problem is that when the spacing and origin of my nrrd image are 1 and 0 respectively, the result …

---

## [SimpleITK installation in anaconda environment](https://discourse.itk.org/t/simpleitk-installation-in-anaconda-environment/3106)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 3:10pm UTC](https://discourse.itk.org/t/simpleitk-installation-in-anaconda-environment/3106 "2020-05-31T15:10:54Z")

</div>

Hi all, I hope this is a relevant question for this forum … I am trying to install simpleITK in Anaconda3 environment. I followed the instructions in the manual. pip install SimpleITK conda list I can see SimpleITK …

---

## [SimpleITK.Show throws exception](https://discourse.itk.org/t/simpleitk-show-throws-exception/3133)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 0\
**Last updated:** [May 31, 2020, 9:24am UTC](https://discourse.itk.org/t/simpleitk-show-throws-exception/3133 "2020-05-31T09:24:09Z")

</div>

hi all, I am trying to write python in jupyter! (/SimpleITK-Notebooks/python && SimpleITK-Notebooks/utilities in PYTHONPATH environment variable) (importing update\_path\_to\_download\_script && download data scripts) imp…

---

## [Defining Landmarks file](https://discourse.itk.org/t/defining-landmarks-file/3110)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 4\
**Last updated:** [May 24, 2020, 4:15am UTC](https://discourse.itk.org/t/defining-landmarks-file/3110 "2020-05-24T04:15:38Z")

</div>

Hi, I want to use the ThinPlateSpline code in ITK, I already have my landmarks but I do not know how I should define a readable file for landmarks for the code. I defined the landmarks in the txt file I have attached but…

---

## [Problem in using difference filter in code](https://discourse.itk.org/t/problem-in-using-difference-filter-in-code/3112)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 1\
**Last updated:** [May 23, 2020, 4:59pm UTC](https://discourse.itk.org/t/problem-in-using-difference-filter-in-code/3112 "2020-05-23T16:59:05Z")

</div>

Hi, I added the difference filter in demons code in order to get the difference between deformed and fixed images after registration. However there is an error in the following part of the code. Does anyone help me with …

---

## [Equivalent of GetArrayFromImage](https://discourse.itk.org/t/equivalent-of-getarrayfromimage/3101)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 4\
**Last updated:** [May 22, 2020, 2:17pm UTC](https://discourse.itk.org/t/equivalent-of-getarrayfromimage/3101 "2020-05-22T14:17:41Z")

</div>

I read a lot of Python code, and I saw that is used a lot sitk.GetArrayFromImage method. What is equivalent for C++ of this method ? Example of Python code: labelmaskimage = sitk.GetArrayFromImage(cc) where cc is from …

---

## [Indices of Transformix's outputpoints.txt exceeds image dimensions](https://discourse.itk.org/t/indices-of-transformixs-outputpoints-txt-exceeds-image-dimensions/3105)

<div class="topic-metadata">

**Author:** [@ctorti](https://discourse.itk.org/u/ctorti)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 1:44pm UTC](https://discourse.itk.org/t/indices-of-transformixs-outputpoints-txt-exceeds-image-dimensions/3105 "2020-05-22T13:44:15Z")

</div>

Hi all, I’m encountering an unexpected output from Transformix. I have two images after reading in two series of DICOMs: FixedIm Dtype = 32-bit float MovingIm Dtype = 32-bit float FixedIm Size = (212, 256, 30) Movin…

---

## [siutable deformable registration](https://discourse.itk.org/t/siutable-deformable-registration/3102)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 3\
**Last updated:** [May 22, 2020, 12:43pm UTC](https://discourse.itk.org/t/siutable-deformable-registration/3102 "2020-05-22T12:43:01Z")

</div>

Hi, I want to use deformable image registration method for registering attached images. I saw a lot of sample codes in ITK but I do not know which one is more suitable for my images (my images contain two sets of points)…

---

## [Using sitk::VectorConfidenceConnected on DICOM](https://discourse.itk.org/t/using-sitk-vectorconfidenceconnected-on-dicom/3098)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 2\
**Last updated:** [May 21, 2020, 6:52am UTC](https://discourse.itk.org/t/using-sitk-vectorconfidenceconnected-on-dicom/3098 "2020-05-21T06:52:02Z")

</div>

Is there possible to use sitk::VectorConfidenceConnected filter on DICOM files ? Why I am asking that: because anyway I have tried to use it, I got sitk::ERROR: Pixel type: complex of XX-bit float is not supported in 3D…

---

## [Registrations errors (Root square mean & joint histogram)](https://discourse.itk.org/t/registrations-errors-root-square-mean-joint-histogram/3095)

<div class="topic-metadata">

**Author:** [@Dodox](https://discourse.itk.org/u/Dodox)\
**Replies:** 2\
**Last updated:** [May 20, 2020, 1:11am UTC](https://discourse.itk.org/t/registrations-errors-root-square-mean-joint-histogram/3095 "2020-05-20T01:11:54Z")

</div>

Hello everyone, I would like to know if there is a function on SimpleITK for Python which calculates RMS and joint histogram. cordially.

---

## [ITKwidget displaying multiple objects at once](https://discourse.itk.org/t/itkwidget-displaying-multiple-objects-at-once/3090)

<div class="topic-metadata">

**Author:** [@jfavre](https://discourse.itk.org/u/jfavre)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 8:52pm UTC](https://discourse.itk.org/t/itkwidget-displaying-multiple-objects-at-once/3090 "2020-05-18T20:52:59Z")

</div>

Hello I am a new user of itkwidgets and have been enjoying it greatly. Thanks for the nice examples. Yet, I am unable to create any notebook calling view() with more than one object. I can view an image, or I can view (…

---

## [ITK js with Snowpack](https://discourse.itk.org/t/itk-js-with-snowpack/3084)

<div class="topic-metadata">

**Author:** [@Coert\_Metz](https://discourse.itk.org/u/Coert_Metz)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 3:22pm UTC](https://discourse.itk.org/t/itk-js-with-snowpack/3084 "2020-05-18T15:22:22Z")

</div>

Did anybody try and succeed to use ITK js with Snowpack? Would be interested to know how to get it to work.

---

## [ITK: write volume image (sagittal/aixal/coronal) to 2D series dicom in axial direction](https://discourse.itk.org/t/itk-write-volume-image-sagittal-aixal-coronal-to-2d-series-dicom-in-axial-direction/3078)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 11:54am UTC](https://discourse.itk.org/t/itk-write-volume-image-sagittal-aixal-coronal-to-2d-series-dicom-in-axial-direction/3078 "2020-05-18T11:54:42Z")

</div>

I have a volume, and it may be acquired in sagittal/aixal/coronal direction. Then, I want to save it to 2D series in axial direction. How can we implement this function. Update: I use the itkExtractImageFilter to extra…

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

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