# Beginner Questions

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

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

**Page:** 3

---

## [What are the requirements on DLLs for simpleITK](https://discourse.itk.org/t/what-are-the-requirements-on-dlls-for-simpleitk/7352)

<div class="topic-metadata">

**Author:** [@matt.m](https://discourse.itk.org/u/matt.m)\
**Replies:** 5\
**Last updated:** [December 31, 2024, 5:47pm UTC](https://discourse.itk.org/t/what-are-the-requirements-on-dlls-for-simpleitk/7352 "2024-12-31T17:47:14Z")

</div>

Hello, sorry if this is not the right place to ask this. I am attempting to write a program using SimpleITK (C#) that runs on our clinical machine using their API. The current process is that I create a class library th…

---

## [Negative index ?](https://discourse.itk.org/t/negative-index/7333)

<div class="topic-metadata">

**Author:** [@Oodini](https://discourse.itk.org/u/Oodini)\
**Replies:** 6\
**Last updated:** [December 17, 2024, 4:09am UTC](https://discourse.itk.org/t/negative-index/7333 "2024-12-17T04:09:27Z")

</div>

Hello, I’d like to set the position (0,0) at the center of an image. That would imply using negative indexes. Is it possible (that could be: the \[\] operator may be overloaded) ? Thanks.

---

## [Streaming data to ITK through local disk](https://discourse.itk.org/t/streaming-data-to-itk-through-local-disk/7348)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.itk.org/u/imikejackson)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 2:50pm UTC](https://discourse.itk.org/t/streaming-data-to-itk-through-local-disk/7348 "2024-12-13T14:50:55Z")

</div>

we have a data analysis library that we have been building out over the last few years. In a previous version we were able to hand ITK a wrapped pointer to our data for ITK to process. In our new version this is not poss…

---

## [pyinstaller itk failed to execute script due to unhandled exception](https://discourse.itk.org/t/pyinstaller-itk-failed-to-execute-script-due-to-unhandled-exception/6237)

<div class="topic-metadata">

**Author:** [@CrownMella](https://discourse.itk.org/u/CrownMella)\
**Replies:** 4\
**Last updated:** [December 11, 2024, 3:17am UTC](https://discourse.itk.org/t/pyinstaller-itk-failed-to-execute-script-due-to-unhandled-exception/6237 "2024-12-11T03:17:28Z")

</div>

Hi all, I’m trying to write an executable of my python program using PyInstaller. I tried following the below article (using the same test program in said article) by adding a hook and then writing python -m PyInstal…

---

## [Assign an existing buffer to a new itk::Image instance](https://discourse.itk.org/t/assign-an-existing-buffer-to-a-new-itk-image-instance/7335)

<div class="topic-metadata">

**Author:** [@Oodini](https://discourse.itk.org/u/Oodini)\
**Replies:** 2\
**Last updated:** [December 2, 2024, 2:08pm UTC](https://discourse.itk.org/t/assign-an-existing-buffer-to-a-new-itk-image-instance/7335 "2024-12-02T14:08:18Z")

</div>

Hello, I am supposed to process images coming from an echograph. They do not come from a file, but from a graphic card buffer. How can I set these existing data as LargestPossibleRegion, without copyning them ?

---

## [Error of itk.DemonsRegistrationFilter\[ImageType, ImageType\].New()](https://discourse.itk.org/t/error-of-itk-demonsregistrationfilter-imagetype-imagetype-new/7331)

<div class="topic-metadata">

**Author:** [@siyuanch](https://discourse.itk.org/u/siyuanch)\
**Replies:** 2\
**Last updated:** [November 29, 2024, 3:37pm UTC](https://discourse.itk.org/t/error-of-itk-demonsregistrationfilter-imagetype-imagetype-new/7331 "2024-11-29T15:37:30Z")

</div>

Hi all, I meet an error that there will always be an error of itk.support.extras.TemplateTypeError: itk.DemonsRegistrationFilter is not wrapped for input type \`itk.Image\[itk.F,3\], itk.Image\[itk.F,3\]\`. To limit the size…

---

## [How to import unreal engine?](https://discourse.itk.org/t/how-to-import-unreal-engine/7197)

<div class="topic-metadata">

**Author:** [@sleighmaster](https://discourse.itk.org/u/sleighmaster)\
**Replies:** 5\
**Last updated:** [November 22, 2024, 2:21pm UTC](https://discourse.itk.org/t/how-to-import-unreal-engine/7197 "2024-11-22T14:21:50Z")

</div>

I’m trying to use ITK to read dcm files from Unreal Engine. After cmake, I built AllBuild in release mode. I then built the Insertall project and added it to the directory where the Unreal project is located. The cmake…

---

## [Registration on subregions using DEMONS](https://discourse.itk.org/t/registration-on-subregions-using-demons/7321)

<div class="topic-metadata">

**Author:** [@ignaciobartol](https://discourse.itk.org/u/ignaciobartol)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 9:41pm UTC](https://discourse.itk.org/t/registration-on-subregions-using-demons/7321 "2024-11-21T21:41:01Z")

</div>

Hi all, Long-time reader, first-time poster here! I’m not sure if this is the right category, but as it’s my first question, I’ll post it here. I am performing deformable image registration using DEMONS in a 3D domain …

---

## [Unexpected crash when creating image reader with Visual Studio Release mode](https://discourse.itk.org/t/unexpected-crash-when-creating-image-reader-with-visual-studio-release-mode/7324)

<div class="topic-metadata">

**Author:** [@tctco](https://discourse.itk.org/u/tctco)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 3:04pm UTC](https://discourse.itk.org/t/unexpected-crash-when-creating-image-reader-with-visual-studio-release-mode/7324 "2024-11-21T15:04:25Z")

</div>

I’m trying to use ITK to build a small application for my colleagues. However, the following code causes my app to crash: using ReaderType = itk::ImageFileReader\<ImageType\>; ReaderType::Pointer reader = ReaderType::New(…

---

## [C# Equivalent of GetArray(ViewFrom)Image](https://discourse.itk.org/t/c-equivalent-of-getarray-viewfrom-image/7313)

<div class="topic-metadata">

**Author:** [@general\_rishkin](https://discourse.itk.org/u/general_rishkin)\
**Replies:** 5\
**Last updated:** [November 15, 2024, 2:46pm UTC](https://discourse.itk.org/t/c-equivalent-of-getarray-viewfrom-image/7313 "2024-11-15T14:46:56Z")

</div>

I am attempting to follow the SimpleITK2020 (Python) tutorial but with F#. Part of the code in the “Accessing Pixels and Slicing” section is the following: logo\_copy\[115:190, 0:height\] = logo\_copy\[190:115:-1, 0:height\]…

---

## [Curvature in image](https://discourse.itk.org/t/curvature-in-image/7310)

<div class="topic-metadata">

**Author:** [@Silvan](https://discourse.itk.org/u/Silvan)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 2:27pm UTC](https://discourse.itk.org/t/curvature-in-image/7310 "2024-11-13T14:27:56Z")

</div>

Hello, Is there any ITK filter that can provide information about the curvature of the lines in this image? For example from less curvature to greater curvature by associating this information with different colors? Than…

---

## [3D image registration with protein structures](https://discourse.itk.org/t/3d-image-registration-with-protein-structures/7286)

<div class="topic-metadata">

**Author:** [@MrCarpainter](https://discourse.itk.org/u/MrCarpainter)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 11:57pm UTC](https://discourse.itk.org/t/3d-image-registration-with-protein-structures/7286 "2024-11-05T23:57:46Z")

</div>

I’m new to SimpleITK and have familiarized myself with basics of 3D image registration. I’m working on an image registration pipeline to align two 3D images. The images are density maps for protein structures and have co…

---

## [Unable to save dicom metadata](https://discourse.itk.org/t/unable-to-save-dicom-metadata/7291)

<div class="topic-metadata">

**Author:** [@alrut](https://discourse.itk.org/u/alrut)\
**Replies:** 3\
**Last updated:** [November 4, 2024, 2:07pm UTC](https://discourse.itk.org/t/unable-to-save-dicom-metadata/7291 "2024-11-04T14:07:42Z")

</div>

I had to save images into dicoms. I did it with a help of example from docs. I wasn’t able to save modified metadata - most importantly uids. To prove it I prepared simplest script generating zero-filled dicoms and it d…

---

## [3D CT image rotation and resampling problem](https://discourse.itk.org/t/3d-ct-image-rotation-and-resampling-problem/7298)

<div class="topic-metadata">

**Author:** [@jjs](https://discourse.itk.org/u/jjs)\
**Replies:** 3\
**Last updated:** [November 4, 2024, 12:00am UTC](https://discourse.itk.org/t/3d-ct-image-rotation-and-resampling-problem/7298 "2024-11-04T00:00:17Z")

</div>

Hello, I am new to ITK and try to apply a 3D rotation to CT image data. I have an object which is positioned with an angle in the CT. Therefore, I would like to apply a rotation, so that viewing the dataset wouldn’t “sh…

---

## [HelloWorldITK on macOS Sequoia 15.0.1 cannot find stdio.h](https://discourse.itk.org/t/helloworlditk-on-macos-sequoia-15-0-1-cannot-find-stdio-h/7288)

<div class="topic-metadata">

**Author:** [@Andy](https://discourse.itk.org/u/Andy)\
**Replies:** 4\
**Last updated:** [October 30, 2024, 8:22pm UTC](https://discourse.itk.org/t/helloworlditk-on-macos-sequoia-15-0-1-cannot-find-stdio-h/7288 "2024-10-30T20:22:20Z")

</div>

On macOS 15.0.1, I’m building up to compiling the HelloWorldITK code by starting with the very basic HelloWorld that works just fine. CMakeLists.txt: cmake\_minimum\_required(VERSION 3.10) project(HelloWorld) add\_execut…

---

## [Running Pipeline Inputs/Outputs Tutorial in Browser](https://discourse.itk.org/t/running-pipeline-inputs-outputs-tutorial-in-browser/7282)

<div class="topic-metadata">

**Author:** [@kgoettler](https://discourse.itk.org/u/kgoettler)\
**Replies:** 4\
**Last updated:** [October 29, 2024, 2:54pm UTC](https://discourse.itk.org/t/running-pipeline-inputs-outputs-tutorial-in-browser/7282 "2024-10-29T14:54:57Z")

</div>

Hi all, I’ve been following the ITK-Wasm tutorials and would like to start using ITK-Wasm in some browser-based applications I’m building. As a first step, I’m attempting to compile and run the median filtering code fro…

---

## [Example of loading images using itk-wasm?](https://discourse.itk.org/t/example-of-loading-images-using-itk-wasm/7275)

<div class="topic-metadata">

**Author:** [@dstansby](https://discourse.itk.org/u/dstansby)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 6:05pm UTC](https://discourse.itk.org/t/example-of-loading-images-using-itk-wasm/7275 "2024-10-22T18:05:42Z")

</div>

I’m looking to render a 3D TIFF file using vtk.js, and I understand I can handle the reading of the images using itk-wasm, and then convert it to a VTK object. I’m struggling to understand from the itk-wasm API docs how …

---

## [How to synthesize the 2D image after each layer correction back into 3D？](https://discourse.itk.org/t/how-to-synthesize-the-2d-image-after-each-layer-correction-back-into-3d/7273)

<div class="topic-metadata">

**Author:** [@Breeze-Zero](https://discourse.itk.org/u/Breeze-Zero)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 2:01pm UTC](https://discourse.itk.org/t/how-to-synthesize-the-2d-image-after-each-layer-correction-back-into-3d/7273 "2024-10-21T14:01:19Z")

</div>

I have a cardiac MRI motion correction code that splits the original 4D nii into multiple slices for correction, which is actually modifying the saved affine matrix, but this code saves the corrected results as separate …

---

## [how to perform CBCT 3D reconstruction given a squence of 2D .raw X-ray images and corresponding projection matrices](https://discourse.itk.org/t/how-to-perform-cbct-3d-reconstruction-given-a-squence-of-2d-raw-x-ray-images-and-corresponding-projection-matrices/7251)

<div class="topic-metadata">

**Author:** [@zhangxiang](https://discourse.itk.org/u/zhangxiang)\
**Replies:** 10\
**Last updated:** [October 14, 2024, 1:01pm UTC](https://discourse.itk.org/t/how-to-perform-cbct-3d-reconstruction-given-a-squence-of-2d-raw-x-ray-images-and-corresponding-projection-matrices/7251 "2024-10-14T13:01:08Z")

</div>

I want to do this work in The Reconstruction Toolkit, and I know how to use a .mha file to reconstruction. But i do not know how to store .raw image sequence into a .mha file(or multiple if possible) with correct origin…

---

## [Same patient's dicom volumes has different dimensions, spacing and slices numbers](https://discourse.itk.org/t/same-patients-dicom-volumes-has-different-dimensions-spacing-and-slices-numbers/7256)

<div class="topic-metadata">

**Author:** [@Deniz\_Ceylan](https://discourse.itk.org/u/Deniz_Ceylan)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 12:52pm UTC](https://discourse.itk.org/t/same-patients-dicom-volumes-has-different-dimensions-spacing-and-slices-numbers/7256 "2024-10-14T12:52:03Z")

</div>

Hi, I’ve looked for solutions here but i couldnt find. Sorry if it’s a duplication. I have 11 different DICOM volumes of same patient (converted to nifti) with absolutely different dimensions. I want to use caPTk for…

---

## [Building ITK: Error With Algorithim Module](https://discourse.itk.org/t/building-itk-error-with-algorithim-module/5927)

<div class="topic-metadata">

**Author:** [@ramen-newdals](https://discourse.itk.org/u/ramen-newdals)\
**Replies:** 22\
**Last updated:** [October 9, 2024, 2:06pm UTC](https://discourse.itk.org/t/building-itk-error-with-algorithim-module/5927 "2024-10-09T14:06:33Z")

</div>

Hello ITK Community, I am attempting to rebuild the ITK project. I had a successful build on the same system before, but I am having problems with this rebuild (The previous build was completed with the VMTK super build…

---

## [creation of dicom with less size](https://discourse.itk.org/t/creation-of-dicom-with-less-size/6372)

<div class="topic-metadata">

**Author:** [@George\_Z](https://discourse.itk.org/u/George_Z)\
**Replies:** 6\
**Last updated:** [August 1, 2024, 4:46pm UTC](https://discourse.itk.org/t/creation-of-dicom-with-less-size/6372 "2024-08-01T16:46:24Z")

</div>

Hello, I am trying to reduce dicom file size when creating a new dicom by converting from bmp to png but I do not see the file size getting reduced, png use compession so logically I have less file size. Best Regards …

---

## [How to use FetchContent in CMakeList.txt to download/build SimpleITK and create example](https://discourse.itk.org/t/how-to-use-fetchcontent-in-cmakelist-txt-to-download-build-simpleitk-and-create-example/7231)

<div class="topic-metadata">

**Author:** [@SuperTXUH](https://discourse.itk.org/u/SuperTXUH)\
**Replies:** 6\
**Last updated:** [September 23, 2024, 3:58pm UTC](https://discourse.itk.org/t/how-to-use-fetchcontent-in-cmakelist-txt-to-download-build-simpleitk-and-create-example/7231 "2024-09-23T15:58:08Z")

</div>

I want to have an auto-configuration of SimpleITK and create the example project. Here is an example CMakeList.txt: cmake\_minimum\_required(VERSION 3.16.3) project(exampleSITK) set(BUILD\_TESTING OFF) set(BUILD\_EXAMPLES…

---

## [Need help understanding codes from sitk notebook](https://discourse.itk.org/t/need-help-understanding-codes-from-sitk-notebook/7228)

<div class="topic-metadata">

**Author:** [@Learner](https://discourse.itk.org/u/Learner)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 5:56pm UTC](https://discourse.itk.org/t/need-help-understanding-codes-from-sitk-notebook/7228 "2024-09-19T17:56:02Z")

</div>

I need help understanding some codes lines from sitk notebook (63\_Registration\_Initialization), link here. I will (1) show the codes that I am using, (2) then ask my specific questions. I have so many questions (I apolo…

---

## [How to apply an existing BSpline transformation to points, TransformPoint not working for me?](https://discourse.itk.org/t/how-to-apply-an-existing-bspline-transformation-to-points-transformpoint-not-working-for-me/7199)

<div class="topic-metadata">

**Author:** [@G\_Y](https://discourse.itk.org/u/G_Y)\
**Replies:** 5\
**Last updated:** [August 30, 2024, 11:37pm UTC](https://discourse.itk.org/t/how-to-apply-an-existing-bspline-transformation-to-points-transformpoint-not-working-for-me/7199 "2024-08-30T23:37:29Z")

</div>

Hi, I have an existing BSpline transform as a result of registering a pair of images. Now I want to apply this existing transform to a set of 3D points. My idea is to create a new BSplineTransform and call its TransformP…

---

## [Trouble when reading some dcm files](https://discourse.itk.org/t/trouble-when-reading-some-dcm-files/7190)

<div class="topic-metadata">

**Author:** [@Xoz](https://discourse.itk.org/u/Xoz)\
**Replies:** 4\
**Last updated:** [August 26, 2024, 7:29am UTC](https://discourse.itk.org/t/trouble-when-reading-some-dcm-files/7190 "2024-08-26T07:29:21Z")

</div>

Hi everyone, I met a problem when reading some dcm files recently when using itk-wasm, in the past the input files was usually a sort of single slice dcm files, but some newer ones became only one file that seems contai…

---

## [Memory won't release when loading images in Python](https://discourse.itk.org/t/memory-wont-release-when-loading-images-in-python/3219)

<div class="topic-metadata">

**Author:** [@malteekj](https://discourse.itk.org/u/malteekj)\
**Replies:** 8\
**Last updated:** [August 22, 2024, 5:00pm UTC](https://discourse.itk.org/t/memory-wont-release-when-loading-images-in-python/3219 "2024-08-22T17:00:20Z")

</div>

I’m fairly new to the SimpleITK API and I’m using it right now to load a CT and PET image, and resample the PET to the same coordinate system and size as the CT (for a deep learning algorithm). Right now my code is: re…

---

## [Empty volume after resampling, struggling with the origin](https://discourse.itk.org/t/empty-volume-after-resampling-struggling-with-the-origin/7185)

<div class="topic-metadata">

**Author:** [@renate](https://discourse.itk.org/u/renate)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 1:05pm UTC](https://discourse.itk.org/t/empty-volume-after-resampling-struggling-with-the-origin/7185 "2024-08-22T13:05:04Z")

</div>

Hi! I have some problems with resampling the volume and determining the new origin. I have a volume (57x57x100) and then I permute the axis,change the direction and set the spacing using: img = sitk.ReadImage(nifti\_pa…

---

## [\[UNKNOWN\_PRINT\_CHARACTERISTICS\] when reading MINC headers](https://discourse.itk.org/t/unknown-print-characteristics-when-reading-minc-headers/7180)

<div class="topic-metadata">

**Author:** [@Confused](https://discourse.itk.org/u/Confused)\
**Replies:** 10\
**Last updated:** [August 21, 2024, 8:41pm UTC](https://discourse.itk.org/t/unknown-print-characteristics-when-reading-minc-headers/7180 "2024-08-21T20:41:24Z")

</div>

Hello, I am a beginner in using simpleitk. I have came across an issue with when reading specific header informatic from my MINC file resulting in \[UNKNOWN\_PRINT\_CHARACTERISTICS\]. However, when I view these information …

---

## [How to use ITKMontage to stitch segmentation label images?](https://discourse.itk.org/t/how-to-use-itkmontage-to-stitch-segmentation-label-images/6611)

<div class="topic-metadata">

**Author:** [@Mazen\_Soufi](https://discourse.itk.org/u/Mazen_Soufi)\
**Replies:** 8\
**Last updated:** [August 15, 2024, 3:31pm UTC](https://discourse.itk.org/t/how-to-use-itkmontage-to-stitch-segmentation-label-images/6611 "2024-08-15T15:31:30Z")

</div>

Hi, I’m trying to use ITKMontage’s TileMergeImageFilter to stitch segmentation label images (uint8) using the transformations obtained from grayscale images. The file below shows at its header that the default interpol…

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

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