# Beginner Questions

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

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

**Page:** 32

---

## [Compile first simpleitk c++ project for Windows](https://discourse.itk.org/t/compile-first-simpleitk-c-project-for-windows/2683)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 15\
**Last updated:** [February 25, 2020, 2:52pm UTC](https://discourse.itk.org/t/compile-first-simpleitk-c-project-for-windows/2683 "2020-02-25T14:52:28Z")

</div>

I have successfully compiled SimpleITK library, helped by Git and CMake. I have to make a parentheses: I would like to compile SimpleITK by CMake GUI, to choose what I need and what I not need, but I cannot do that, not …

---

## [how to use cmake map\_imported\_config\_\<config\> with ITK](https://discourse.itk.org/t/how-to-use-cmake-map-imported-config-config-with-itk/2734)

<div class="topic-metadata">

**Author:** [@sghosh](https://discourse.itk.org/u/sghosh)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 1:25pm UTC](https://discourse.itk.org/t/how-to-use-cmake-map-imported-config-config-with-itk/2734 "2020-02-24T13:25:53Z")

</div>

Hello, I am using ITK -3.20.1 version in my own project with visual studio. I would like to create a custom configuration derived from release in this manner: foreach(\_itklib ${ITK\_LIBRARIES}) set\_target\_properties($…

---

## [The information in SimpleITK is different from that in dicom header](https://discourse.itk.org/t/the-information-in-simpleitk-is-different-from-that-in-dicom-header/2737)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 12\
**Last updated:** [February 21, 2020, 4:26pm UTC](https://discourse.itk.org/t/the-information-in-simpleitk-is-different-from-that-in-dicom-header/2737 "2020-02-21T16:26:17Z")

</div>

I am using SimpleITK in my project, and I find the patient position read by SimpleITK is differaent from that from dicom header (RadiAnt). Firstly, I use image = sitk.ReadImage(names) to read image, and I am quite sure …

---

## [Updating a sub region in ImageToVTKImageFilter](https://discourse.itk.org/t/updating-a-sub-region-in-imagetovtkimagefilter/702)

<div class="topic-metadata">

**Author:** [@benjaminhon](https://discourse.itk.org/u/benjaminhon)\
**Replies:** 16\
**Last updated:** [February 20, 2020, 3:29pm UTC](https://discourse.itk.org/t/updating-a-sub-region-in-imagetovtkimagefilter/702 "2020-02-20T15:29:45Z")

</div>

Hi all, I am performing some annotation functions which which modifies the ITK image -\> ImageToVTKImageFilter -\> vtkImageViewer2. However, this is quite slow for large images because I need to call ImageToVTKImageFilte…

---

## [Question of the pipeline of MultiResolutionPDEDeformableRegistration](https://discourse.itk.org/t/question-of-the-pipeline-of-multiresolutionpdedeformableregistration/2749)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 3:00pm UTC](https://discourse.itk.org/t/question-of-the-pipeline-of-multiresolutionpdedeformableregistration/2749 "2020-02-20T15:00:31Z")

</div>

Currently, I need to use GPU based Demons on my project. Unfortunately, the GPU based Demons don’t work for multi-resolution framework. Thus, I implement myself multi-resolution code for GPU based Demons. My code is: #i…

---

## [static compiled example exits with segfault](https://discourse.itk.org/t/static-compiled-example-exits-with-segfault/2744)

<div class="topic-metadata">

**Author:** [@Vincent](https://discourse.itk.org/u/Vincent)\
**Replies:** 3\
**Last updated:** [February 20, 2020, 11:41am UTC](https://discourse.itk.org/t/static-compiled-example-exits-with-segfault/2744 "2020-02-20T11:41:06Z")

</div>

Dear members, as I am quite new to ITK, I hope someone can help me out with this static runtime crash. I am trying to statically compile an example from ITK to the statix ITK libraries. make build dir mkdir itk-stati…

---

## [GPU version Demons: the size of output is different from that of input image](https://discourse.itk.org/t/gpu-version-demons-the-size-of-output-is-different-from-that-of-input-image/2743)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [February 20, 2020, 1:53am UTC](https://discourse.itk.org/t/gpu-version-demons-the-size-of-output-is-different-from-that-of-input-image/2743 "2020-02-20T01:53:10Z")

</div>

I am using GPU Demons for myself project. I find a strange bug: the size of input (fix and moving image) is (174, 256, 256), but the size of output is (87, 128, 128). The main code is: RegistrationFilterType::Pointer …

---

## [Bug for GPU Demons](https://discourse.itk.org/t/bug-for-gpu-demons/2740)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [February 19, 2020, 2:09pm UTC](https://discourse.itk.org/t/bug-for-gpu-demons/2740 "2020-02-19T14:09:26Z")

</div>

I want to use GPU Demons in my application with multi-resolution framework. However, the current multi-resolution framework do not suport GPU Demons, thus I implement it by myself. The main code is: using VectorPixelT…

---

## [Convert from itk.Mesh\[itk.F,3\] to itk.Mesh\[itk.SS,3\]](https://discourse.itk.org/t/convert-from-itk-mesh-itk-f-3-to-itk-mesh-itk-ss-3/2719)

<div class="topic-metadata">

**Author:** [@EmileSonneveld](https://discourse.itk.org/u/EmileSonneveld)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 1:43pm UTC](https://discourse.itk.org/t/convert-from-itk-mesh-itk-f-3-to-itk-mesh-itk-ss-3/2719 "2020-02-19T13:43:05Z")

</div>

Hi! itk.MeshFileReader and itk.TriangleMeshToBinaryImageFilter don’t share a common mesh type. So I need to load a itk.F/itk.D mesh and convert it to a itk.SS/itk.UC/itk.US mesh. Does anyone know how to do that? Prob…

---

## [Transfer from SimpleITK to VTK](https://discourse.itk.org/t/transfer-from-simpleitk-to-vtk/2729)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 4\
**Last updated:** [February 18, 2020, 6:25pm UTC](https://discourse.itk.org/t/transfer-from-simpleitk-to-vtk/2729 "2020-02-18T18:25:17Z")

</div>

I guess I have transferred vtkImageData to SimpleITK object with code from here: https://discourse.itk.org/t/transfer-from-vtk-to-simpleitk/2717/11 After I imported data into a sitk::Image in order apply some filter. No…

---

## [How ro register CT and MRI DICOM images](https://discourse.itk.org/t/how-ro-register-ct-and-mri-dicom-images/2736)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 1\
**Last updated:** [February 18, 2020, 5:33pm UTC](https://discourse.itk.org/t/how-ro-register-ct-and-mri-dicom-images/2736 "2020-02-18T17:33:57Z")

</div>

Hi. I am trying to create a functionality for my application that is capable of register images of the CT brain with 512x512 resolution and MRI with 256x256 resolution of T1 sequences in DICOM format, and for this I hav…

---

## [Question about CMakeLists.txt](https://discourse.itk.org/t/question-about-cmakelists-txt/2732)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.itk.org/u/zhang-qiang-github)\
**Replies:** 3\
**Last updated:** [February 18, 2020, 1:59pm UTC](https://discourse.itk.org/t/question-about-cmakelists-txt/2732 "2020-02-18T13:59:22Z")

</div>

Currently, I can use CMakeLists.txt to build a project. Let’s say, in CMake to build the project, the path of source code is PATH, and the path of binaries is PATH/bin. Then, I want to add some myself code, for example,…

---

## [Resampling depth in 3D datasets](https://discourse.itk.org/t/resampling-depth-in-3d-datasets/2733)

<div class="topic-metadata">

**Author:** [@TanjaIvanovska](https://discourse.itk.org/u/TanjaIvanovska)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 8:16am UTC](https://discourse.itk.org/t/resampling-depth-in-3d-datasets/2733 "2020-02-18T08:16:13Z")

</div>

Dear All, i want to resample a 3D dataset with original spacing (X\_o,Y\_o,Z\_o) to a new spacing, which differs from the original one only in depth (X\_o,Y\_o, Z\_new). This will result in the same spatial dimensions of imag…

---

## [Anisotropic Diffusion Filter - Source Code](https://discourse.itk.org/t/anisotropic-diffusion-filter-source-code/2731)

<div class="topic-metadata">

**Author:** [@michael](https://discourse.itk.org/u/michael)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 3:16pm UTC](https://discourse.itk.org/t/anisotropic-diffusion-filter-source-code/2731 "2020-02-17T15:16:04Z")

</div>

Hi there! New to ITK, so it’s possible I’m missing something obvious, but I have been searching through the documentation for the GradientAnisotropicDiffusionFilter in Simple ITK and have found the descriptions of the an…

---

## [Thresholding for DICOM images](https://discourse.itk.org/t/thresholding-for-dicom-images/2704)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.itk.org/u/ShaneKirkbride)\
**Replies:** 5\
**Last updated:** [February 16, 2020, 7:27pm UTC](https://discourse.itk.org/t/thresholding-for-dicom-images/2704 "2020-02-16T19:27:34Z")

</div>

I’m trying to render an isoSurface with a series of dicom images. However I’d like to threshold this surface because some of the data isn’t good. Is there a way to threshold? In VTK I do something like this: vtkSmartP…

---

## [Transfer from VTK to SimpleITK](https://discourse.itk.org/t/transfer-from-vtk-to-simpleitk/2717)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.itk.org/u/flaviu2)\
**Replies:** 10\
**Last updated:** [February 14, 2020, 3:06pm UTC](https://discourse.itk.org/t/transfer-from-vtk-to-simpleitk/2717 "2020-02-14T15:06:25Z")

</div>

I come back here because I am working blind (I cannot compile SimpleITK, this is drive me crazy, because I am running out of time). And until I solve that issue (working on that by days !!! unbelievable) I am trying to w…

---

## [Determining number Of Grid Nodes](https://discourse.itk.org/t/determining-number-of-grid-nodes/2721)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.itk.org/u/ShaneKirkbride)\
**Replies:** 3\
**Last updated:** [February 14, 2020, 1:32pm UTC](https://discourse.itk.org/t/determining-number-of-grid-nodes/2721 "2020-02-14T13:32:11Z")

</div>

How is the number of grid nodes in one dimension determined? Thanks, ~Shane

---

## [current development SimpleITK](https://discourse.itk.org/t/current-development-simpleitk/2700)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 6\
**Last updated:** [February 14, 2020, 3:12am UTC](https://discourse.itk.org/t/current-development-simpleitk/2700 "2020-02-14T03:12:27Z")

</div>

I have a script that loads a tiff image using tifffile into numpy and converted to sitk, and apply a transform stack on the image. It works with an older version of SimpleITK but not the latest. The latest version of Si…

---

## [Transferring points to an image](https://discourse.itk.org/t/transferring-points-to-an-image/2713)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.itk.org/u/ShaneKirkbride)\
**Replies:** 1\
**Last updated:** [February 12, 2020, 10:00pm UTC](https://discourse.itk.org/t/transferring-points-to-an-image/2713 "2020-02-12T22:00:01Z")

</div>

It seems like there are more registration methods for images rather than points. How do I take a PointType and assign it to an image? Are there any examples? Thanks, ~Shane

---

## [Guidance on using DisconnectPipeline for filter reuse](https://discourse.itk.org/t/guidance-on-using-disconnectpipeline-for-filter-reuse/2702)

<div class="topic-metadata">

**Author:** [@kyochujoho](https://discourse.itk.org/u/kyochujoho)\
**Replies:** 0\
**Last updated:** [February 11, 2020, 4:27am UTC](https://discourse.itk.org/t/guidance-on-using-disconnectpipeline-for-filter-reuse/2702 "2020-02-11T04:27:32Z")

</div>

Hello, I’d like to use itk.CoocurrenceTextureFeaturesImageFilter using two different parameter settings, one after the other. However I’m failing to execute the proper commands to retrieve the image of the second configu…

---

## [special characters like ñ to set the file name in itk, visual studio (windows)](https://discourse.itk.org/t/special-characters-like-n-to-set-the-file-name-in-itk-visual-studio-windows/2523)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.itk.org/u/zandarina)\
**Replies:** 2\
**Last updated:** [February 11, 2020, 3:22am UTC](https://discourse.itk.org/t/special-characters-like-n-to-set-the-file-name-in-itk-visual-studio-windows/2523 "2020-02-11T03:22:09Z")

</div>

Hi everybody, I wonder how to deal with filenames with special characters like ñ in SetInputDirectory(std::string const &name) as when we open directories with ñ, it says that it does not exist because of these charact…

---

## [VNL Errors on Windows 10](https://discourse.itk.org/t/vnl-errors-on-windows-10/2681)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.itk.org/u/ShaneKirkbride)\
**Replies:** 13\
**Last updated:** [February 7, 2020, 4:28pm UTC](https://discourse.itk.org/t/vnl-errors-on-windows-10/2681 "2020-02-07T16:28:59Z")

</div>

I’m trying to build ITK in Visual Studio 2019. I’m getting this error: source\\repos\\ITK\\Modules\\ThirdParty\\VNL\\src\\vxl\\core\\vnl\\vnl\_error.h(13,19): error C2144: syntax error: ‘void’ should be preceded by ‘;’ I’ve tried…

---

## [Compiler c++ version flags supported](https://discourse.itk.org/t/compiler-c-version-flags-supported/2662)

<div class="topic-metadata">

**Author:** [@ghlecl](https://discourse.itk.org/u/ghlecl)\
**Replies:** 4\
**Last updated:** [February 5, 2020, 1:43pm UTC](https://discourse.itk.org/t/compiler-c-version-flags-supported/2662 "2020-02-05T13:43:57Z")

</div>

Hello, I am trying to figure out what is supported and not supported in terms of C++ standard for library users. It might be in the doc and I might be missing something, but it is not clear to me what is and isn’t supp…

---

## [Fast 2D-2D image registration](https://discourse.itk.org/t/fast-2d-2d-image-registration/2679)

<div class="topic-metadata">

**Author:** [@tanres](https://discourse.itk.org/u/tanres)\
**Replies:** 3\
**Last updated:** [February 4, 2020, 2:45pm UTC](https://discourse.itk.org/t/fast-2d-2d-image-registration/2679 "2020-02-04T14:45:22Z")

</div>

Hello, I am using simpleitk to register chest x rays of size 512x512. An affine registration produces a decent result and takes about 2 min on my machine. A further free-form deformation based non rigid registration take…

---

## [sitk dev install without building](https://discourse.itk.org/t/sitk-dev-install-without-building/2672)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 5\
**Last updated:** [February 3, 2020, 3:23pm UTC](https://discourse.itk.org/t/sitk-dev-install-without-building/2672 "2020-02-03T15:23:47Z")

</div>

It looks like the dev conda packages are out of date, is building SimpleITK from source the best best towards getting the latest sitk developments or is there a easier way? it also looks like cdash only does nightly on …

---

## [Add possibility to control TBB region splitter](https://discourse.itk.org/t/add-possibility-to-control-tbb-region-splitter/2666)

<div class="topic-metadata">

**Author:** [@illia.kramarenko](https://discourse.itk.org/u/illia.kramarenko)\
**Replies:** 6\
**Last updated:** [February 1, 2020, 4:08pm UTC](https://discourse.itk.org/t/add-possibility-to-control-tbb-region-splitter/2666 "2020-02-01T16:08:40Z")

</div>

Hi, In the ITK 5.0 you’ve added new multithreading approach using the TBB library. Now it’s possible to parallelize work on a pixel level. My question is in following - how can I force TBB splitter to stop on slice leve…

---

## [how to preserve transform of full resolution image](https://discourse.itk.org/t/how-to-preserve-transform-of-full-resolution-image/2664)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 3\
**Last updated:** [January 31, 2020, 4:10pm UTC](https://discourse.itk.org/t/how-to-preserve-transform-of-full-resolution-image/2664 "2020-01-31T16:10:05Z")

</div>

I have a group of rgb tiff images that have been registered using low resolution tiles, I want to apply the transform to each tiff image save the image back to a new tiff file but with the full resolution and tiles etc, …

---

## [3D Model from MRI scan](https://discourse.itk.org/t/3d-model-from-mri-scan/2420)

<div class="topic-metadata">

**Author:** [@tkindu](https://discourse.itk.org/u/tkindu)\
**Replies:** 3\
**Last updated:** [January 22, 2020, 2:15pm UTC](https://discourse.itk.org/t/3d-model-from-mri-scan/2420 "2020-01-22T14:15:29Z")

</div>

Hi i’m researching whether I can use ITK to create a software which would convert MRI scan (DICOM format) into a 3D model. Please direct me to any similar examples and if not possible please provide any tips on where I c…

---

## [best way to apply composite transforms in sitk](https://discourse.itk.org/t/best-way-to-apply-composite-transforms-in-sitk/2532)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.itk.org/u/kayarre)\
**Replies:** 3\
**Last updated:** [January 17, 2020, 8:00pm UTC](https://discourse.itk.org/t/best-way-to-apply-composite-transforms-in-sitk/2532 "2020-01-17T20:00:36Z")

</div>

I am trying to apply several transforms to an image, i.e. align a set of 2d image to the same space, when I apply the transforms it doesn’t appear to work even though the figures I generate before this operation appear …

---

## [MultiLabelSTAPLEImageFilter introduce new label value](https://discourse.itk.org/t/multilabelstapleimagefilter-introduce-new-label-value/2593)

<div class="topic-metadata">

**Author:** [@hubutui](https://discourse.itk.org/u/hubutui)\
**Replies:** 2\
**Last updated:** [January 14, 2020, 2:34pm UTC](https://discourse.itk.org/t/multilabelstapleimagefilter-introduce-new-label-value/2593 "2020-01-14T14:34:01Z")

</div>

I’m using MultiLabelSTAPLEImageFilter to combine several annotations. However, this filter introduce new label value. Here is my script: import SimpleITK as sitk import numpy as np import os import os.path as osp if \_…

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

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