# Latest

**URL:** https://discourse.itk.org/latest.md?page=36

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

**Page:** 37

---

## [Strange dependency between GPU & CPU filters](https://discourse.itk.org/t/strange-dependency-between-gpu-cpu-filters/5188)

<div class="topic-metadata">

**Author:** [@Fijoy\_Vadakkumpadan](https://discourse.itk.org/u/Fijoy_Vadakkumpadan)\
**Replies:** 2\
**Last updated:** [July 18, 2022, 5:33am UTC](https://discourse.itk.org/t/strange-dependency-between-gpu-cpu-filters/5188 "2022-07-18T05:33:24Z")

</div>

Do GPU filters in ITK have some hidden dependency on corresponding CPU filters? I’m seeing this unexpected behavior in my application where a GPU filter usage aborts my application with an exception (the kind that canno…

---

## [Remove multiple labels in 1 bone and have only 1 label per bone](https://discourse.itk.org/t/remove-multiple-labels-in-1-bone-and-have-only-1-label-per-bone/5186)

<div class="topic-metadata">

**Author:** [@Vilma\_Bozgo](https://discourse.itk.org/u/Vilma_Bozgo)\
**Replies:** 5\
**Last updated:** [July 15, 2022, 2:14pm UTC](https://discourse.itk.org/t/remove-multiple-labels-in-1-bone-and-have-only-1-label-per-bone/5186 "2022-07-15T14:14:29Z")

</div>

Hello! I have a multilabel skeleton mask for MRI images of the skeleton. But for the same bone I sometimes get different labels, like in the image attached where the first bone gets a red label and a green label. But in …

---

## [Reading in .ima 3D image files from CBCT](https://discourse.itk.org/t/reading-in-ima-3d-image-files-from-cbct/5184)

<div class="topic-metadata">

**Author:** [@gmm9uf](https://discourse.itk.org/u/gmm9uf)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 10:32pm UTC](https://discourse.itk.org/t/reading-in-ima-3d-image-files-from-cbct/5184 "2022-07-14T22:32:07Z")

</div>

I have 3D CBCT images to analyze but am not sure how to read in these image files. Each image consists of about 400 .ima files (which I am assuming are 2D slices that together form the 3D image). I am able to read in eac…

---

## [Include ITK in own project in Visual studio 2022](https://discourse.itk.org/t/include-itk-in-own-project-in-visual-studio-2022/5178)

<div class="topic-metadata">

**Author:** [@KateDelb](https://discourse.itk.org/u/KateDelb)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 12:49pm UTC](https://discourse.itk.org/t/include-itk-in-own-project-in-visual-studio-2022/5178 "2022-07-14T12:49:54Z")

</div>

This might be a stupid question, but I’m new so bare with me. I’m trying to include ITK into my on visual studio project: project-\>properties-\>c/c+±\>general-\>Additional Include But I’m not quite sure what to include? I…

---

## [How to do “Annotation&Measurement” on MPR like MITK or 3D Slicer?](https://discourse.itk.org/t/how-to-do-annotation-measurement-on-mpr-like-mitk-or-3d-slicer/5174)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [July 13, 2022, 4:55pm UTC](https://discourse.itk.org/t/how-to-do-annotation-measurement-on-mpr-like-mitk-or-3d-slicer/5174 "2022-07-13T16:55:45Z")

</div>

How to do “Annotation&Measurement” on MPR like MITK or 3D Slicer?

---

## [Double Conversion Error](https://discourse.itk.org/t/double-conversion-error/5172)

<div class="topic-metadata">

**Author:** [@haochenz58](https://discourse.itk.org/u/haochenz58)\
**Replies:** 4\
**Last updated:** [July 12, 2022, 5:54pm UTC](https://discourse.itk.org/t/double-conversion-error/5172 "2022-07-12T17:54:31Z")

</div>

Hi! I’m trying to build and run my ITK from source on Ubuntu 20.04. I pulled from the repo, used cmake to configure and generate it, then ran the example/installation hello world example with a separate build folder unde…

---

## [Interpolate image physical points from DVF extracted from mesh points](https://discourse.itk.org/t/interpolate-image-physical-points-from-dvf-extracted-from-mesh-points/5164)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.itk.org/u/isuruwi)\
**Replies:** 3\
**Last updated:** [July 8, 2022, 1:38pm UTC](https://discourse.itk.org/t/interpolate-image-physical-points-from-dvf-extracted-from-mesh-points/5164 "2022-07-08T13:38:09Z")

</div>

I have extracted a volumetric mesh from a given nifti image. And then apply some deformation to that mesh points to create a deformed version of it. Now what I wanted is to apply the same deformation/DVF on the mesh poi…

---

## [Compute a MSE metric for a fixed and moving image (manual registration)](https://discourse.itk.org/t/compute-a-mse-metric-for-a-fixed-and-moving-image-manual-registration/5161)

<div class="topic-metadata">

**Author:** [@Lermontov](https://discourse.itk.org/u/Lermontov)\
**Replies:** 3\
**Last updated:** [July 8, 2022, 7:20am UTC](https://discourse.itk.org/t/compute-a-mse-metric-for-a-fixed-and-moving-image-manual-registration/5161 "2022-07-08T07:20:10Z")

</div>

Hi, I’m new to ITK and image registration in general. And I’m facing a problem I barely know how to solve. Before applying 2D/2D image registration on two images, I want to know if my registration is more likely to con…

---

## [How to remove CT bed/shadows in a CT image](https://discourse.itk.org/t/how-to-remove-ct-bed-shadows-in-a-ct-image/5162)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 5\
**Last updated:** [July 6, 2022, 3:32pm UTC](https://discourse.itk.org/t/how-to-remove-ct-bed-shadows-in-a-ct-image/5162 "2022-07-06T15:32:24Z")

</div>

I am working with 3D CT images and trying to remove the lines from the bed. I am reading my images with sitk and I know I do not need to convert to Hounsfield Units (I am not sure if thresholding is applicable for my pur…

---

## [How to get metric value for a given set of transform parameters in ITK V4?](https://discourse.itk.org/t/how-to-get-metric-value-for-a-given-set-of-transform-parameters-in-itk-v4/1906)

<div class="topic-metadata">

**Author:** [@eewujian](https://discourse.itk.org/u/eewujian)\
**Replies:** 3\
**Last updated:** [July 6, 2022, 7:12am UTC](https://discourse.itk.org/t/how-to-get-metric-value-for-a-given-set-of-transform-parameters-in-itk-v4/1906 "2022-07-06T07:12:08Z")

</div>

I’m trying to plot a profile of cost function (or metric) values for a 3D image registration study. This can be done easily in ITK V3 with the itk::ImageToImageMetric::GetValue(const ParametersType &parameters) function.…

---

## [Vulnerabilities and security issues.](https://discourse.itk.org/t/vulnerabilities-and-security-issues/5159)

<div class="topic-metadata">

**Author:** [@MartinPare](https://discourse.itk.org/u/MartinPare)\
**Replies:** 3\
**Last updated:** [July 6, 2022, 4:38am UTC](https://discourse.itk.org/t/vulnerabilities-and-security-issues/5159 "2022-07-06T04:38:34Z")

</div>

Hi all, I need to document known vulnerabilities and security related bugs and issues found in ITK. Do you have such a database somewhere? I have searched the CVE database but ITK does not return any hits, Or do you …

---

## [Import From buffer](https://discourse.itk.org/t/import-from-buffer/5158)

<div class="topic-metadata">

**Author:** [@Oddone-Scatena](https://discourse.itk.org/u/Oddone-Scatena)\
**Replies:** 1\
**Last updated:** [July 5, 2022, 2:16pm UTC](https://discourse.itk.org/t/import-from-buffer/5158 "2022-07-05T14:16:22Z")

</div>

I would like to import an image from buffer; is it right? const unsigned short numberOfPixels = pow(size\_import\_buffer\[0\] , 3); auto \* localBuffer = new PixelType\[numberOfPixels\]; PixelType \* it = localBuffer; for(int…

---

## [Spine CT and MRI images registration](https://discourse.itk.org/t/spine-ct-and-mri-images-registration/5146)

<div class="topic-metadata">

**Author:** [@ainor](https://discourse.itk.org/u/ainor)\
**Replies:** 5\
**Last updated:** [July 5, 2022, 9:06am UTC](https://discourse.itk.org/t/spine-ct-and-mri-images-registration/5146 "2022-07-05T09:06:32Z")

</div>

Hello, I am trying to make an automatic registration between CT and MRI images of the spine with ITK, the images are of the same person but they can have different sizes as the example that I show in the attached images. …

---

## [Generating ITK CMake Requires from project code?](https://discourse.itk.org/t/generating-itk-cmake-requires-from-project-code/5154)

<div class="topic-metadata">

**Author:** [@gdevenyi](https://discourse.itk.org/u/gdevenyi)\
**Replies:** 2\
**Last updated:** [July 4, 2022, 2:17pm UTC](https://discourse.itk.org/t/generating-itk-cmake-requires-from-project-code/5154 "2022-07-04T14:17:59Z")

</div>

I recall seeing a script once upon a time that can parse a project’s includes and generate a minimal ITK CMake REQUIRES, does this exist or did I dream it? My google-fu is unable to conjure it up.

---

## [How to write implement Hello World from examples](https://discourse.itk.org/t/how-to-write-implement-hello-world-from-examples/5152)

<div class="topic-metadata">

**Author:** [@gmm9uf](https://discourse.itk.org/u/gmm9uf)\
**Replies:** 1\
**Last updated:** [July 4, 2022, 12:46pm UTC](https://discourse.itk.org/t/how-to-write-implement-hello-world-from-examples/5152 "2022-07-04T12:46:48Z")

</div>

Hello! I am a bit confused about when and where to be configuring and compiling ITK. I was under the impression that after compiling ITK once, I can then write my own separate code that utilizes ITK’s class structure, an…

---

## [3D Affine registration: different datasets](https://discourse.itk.org/t/3d-affine-registration-different-datasets/5127)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 23\
**Last updated:** [July 1, 2022, 7:09pm UTC](https://discourse.itk.org/t/3d-affine-registration-different-datasets/5127 "2022-07-01T19:09:44Z")

</div>

Hello, I am working on 3D CT images. I need to perform registration on two different datasets. I randomly selected a scan from dataset 1 as the fixed\_image and perform a 3d affine registration to register all the scans …

---

## [Is it possible to extract an array of the image intensities in Sitk?](https://discourse.itk.org/t/is-it-possible-to-extract-an-array-of-the-image-intensities-in-sitk/5147)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 3:44pm UTC](https://discourse.itk.org/t/is-it-possible-to-extract-an-array-of-the-image-intensities-in-sitk/5147 "2022-06-30T15:44:32Z")

</div>

I am working with 3D images(300) of size (128x128x128). I want to extract the image area/an array of the image intensities (remove the background), do some transformation, and plug the transformed image intensities back …

---

## [Faster brightness/contrast augmentation?](https://discourse.itk.org/t/faster-brightness-contrast-augmentation/5145)

<div class="topic-metadata">

**Author:** [@Floowey](https://discourse.itk.org/u/Floowey)\
**Replies:** 6\
**Last updated:** [June 30, 2022, 3:40pm UTC](https://discourse.itk.org/t/faster-brightness-contrast-augmentation/5145 "2022-06-30T15:40:46Z")

</div>

Hello, I intend to alter the contrast/brightness of my images in my pytorch Dataset pipeline using the sitk.AdaptiveHistogramEqualization method to make my neural network more robust against such differences. However, I…

---

## [Dumping image](https://discourse.itk.org/t/dumping-image/5138)

<div class="topic-metadata">

**Author:** [@Florian\_Bouillet](https://discourse.itk.org/u/Florian_Bouillet)\
**Replies:** 3\
**Last updated:** [June 30, 2022, 8:49am UTC](https://discourse.itk.org/t/dumping-image/5138 "2022-06-30T08:49:38Z")

</div>

Hello, is there a way to dump an image in an ostream& instead of directly to a file with itkImageFileWriter ? Best regards, Florian Bouillet

---

## [Registration and segmentation from a variety of FOV and orientations](https://discourse.itk.org/t/registration-and-segmentation-from-a-variety-of-fov-and-orientations/5082)

<div class="topic-metadata">

**Author:** [@Mitchellb16](https://discourse.itk.org/u/Mitchellb16)\
**Replies:** 26\
**Last updated:** [June 29, 2022, 9:23pm UTC](https://discourse.itk.org/t/registration-and-segmentation-from-a-variety-of-fov-and-orientations/5082 "2022-06-29T21:23:28Z")

</div>

Hello, I do work with non-human head CT and MRI. My goal is to allow users to load nifti images into my program to be segmented and output in stl format for 3d printing. I’m pulling a lot of code from Dave Chen’s dicom2s…

---

## [ITK 5.2.0 Known Issues location](https://discourse.itk.org/t/itk-5-2-0-known-issues-location/5105)

<div class="topic-metadata">

**Author:** [@Francois](https://discourse.itk.org/u/Francois)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 3:29pm UTC](https://discourse.itk.org/t/itk-5-2-0-known-issues-location/5105 "2022-06-29T15:29:42Z")

</div>

Hello, I need to validate ITK 5.2.0 in our software as a third party library. As we are validating ITK I will need to know what are the known issues for that particular version. The github page for the issues just ref…

---

## [how to create itk image from buffered dicom data](https://discourse.itk.org/t/how-to-create-itk-image-from-buffered-dicom-data/4895)

<div class="topic-metadata">

**Author:** [@mmeltsner](https://discourse.itk.org/u/mmeltsner)\
**Replies:** 4\
**Last updated:** [June 28, 2022, 12:00am UTC](https://discourse.itk.org/t/how-to-create-itk-image-from-buffered-dicom-data/4895 "2022-06-28T00:00:08Z")

</div>

hello, i am currently able to nicely create itk images from dicom data by utilizing the gdcmimageio and the imagefilereader by reading a file from disk. However, i am writing an application in which the .dcm file is tr…

---

## [check is the origin and spacing data present](https://discourse.itk.org/t/check-is-the-origin-and-spacing-data-present/5089)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Replies:** 4\
**Last updated:** [June 27, 2022, 5:43pm UTC](https://discourse.itk.org/t/check-is-the-origin-and-spacing-data-present/5089 "2022-06-27T17:43:42Z")

</div>

I have relatively big dataset from various sources all in MHA I want to be check that all have correctly set spacing,origin and direction - is there a way to check it ? To clarify I read already all of the origin and s…

---

## [transform points between image pre/post registration](https://discourse.itk.org/t/transform-points-between-image-pre-post-registration/5130)

<div class="topic-metadata">

**Author:** [@Enrico\_Sarneri](https://discourse.itk.org/u/Enrico_Sarneri)\
**Replies:** 3\
**Last updated:** [June 27, 2022, 2:43pm UTC](https://discourse.itk.org/t/transform-points-between-image-pre-post-registration/5130 "2022-06-27T14:43:58Z")

</div>

Hello! Sorry for asking again :’) I basically have these two red points that identify the centres of the spheres (1st image). What I do then is to apply a registration (Euler2D) of the image on a reference one, getting…

---

## [groupwise registration with labels](https://discourse.itk.org/t/groupwise-registration-with-labels/5128)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [June 27, 2022, 1:57pm UTC](https://discourse.itk.org/t/groupwise-registration-with-labels/5128 "2022-06-27T13:57:03Z")

</div>

Hello I have dataset with 5 MRI images per patient plus label associated with one of them It seems that groupwise registration could be best option for me like in for example \[1\], but I can not find a way to perform gro…

---

## [itk-wasm, hellow world , nodejs, not working](https://discourse.itk.org/t/itk-wasm-hellow-world-nodejs-not-working/5115)

<div class="topic-metadata">

**Author:** [@sag](https://discourse.itk.org/u/sag)\
**Replies:** 9\
**Last updated:** [June 26, 2022, 7:45pm UTC](https://discourse.itk.org/t/itk-wasm-hellow-world-nodejs-not-working/5115 "2022-06-26T19:45:54Z")

</div>

@lassoan Dear Anders, I have a beginner question. I spent almost two weeks to put together my development environment in windows, wsl+ubuntu2004, macos. I use virtual wsl2 subsystem in windows as linux backend. my fro…

---

## [Upsample a mask the same way that Slicer does](https://discourse.itk.org/t/upsample-a-mask-the-same-way-that-slicer-does/5053)

<div class="topic-metadata">

**Author:** [@ibro45](https://discourse.itk.org/u/ibro45)\
**Replies:** 5\
**Last updated:** [June 24, 2022, 10:29pm UTC](https://discourse.itk.org/t/upsample-a-mask-the-same-way-that-slicer-does/5053 "2022-06-24T22:29:30Z")

</div>

Hi all, For each scan, I have a mask that was segmented out on a cropped and downsampled version of that scan. Loading such a mask in Slicer automatically upsamples it and places it correctly in the physical space of th…

---

## [SimpleITK python installation in windows container](https://discourse.itk.org/t/simpleitk-python-installation-in-windows-container/5129)

<div class="topic-metadata">

**Author:** [@Sowmya\_Rajesh](https://discourse.itk.org/u/Sowmya_Rajesh)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 6:50pm UTC](https://discourse.itk.org/t/simpleitk-python-installation-in-windows-container/5129 "2022-06-23T18:50:53Z")

</div>

Hi all, I am trying to use simpleITK inside the docker windows container. The container is built without any error. But when I run the container, I am getting the following error. Traceback (most recent call last): F…

---

## [metric value registration](https://discourse.itk.org/t/metric-value-registration/5124)

<div class="topic-metadata">

**Author:** [@Enrico\_Sarneri](https://discourse.itk.org/u/Enrico_Sarneri)\
**Replies:** 6\
**Last updated:** [June 23, 2022, 2:18pm UTC](https://discourse.itk.org/t/metric-value-registration/5124 "2022-06-23T14:18:01Z")

</div>

Hey guys, I would ask you a question (maybe stupid or banal for someone). I applied the registration method exactly as illustrated here SimpleITK-Notebooks/60\_Registration\_Introduction.ipynb at master · InsightSoftwareCo…

---

## [Is there a way to read a DICOM from bytes in memory](https://discourse.itk.org/t/is-there-a-way-to-read-a-dicom-from-bytes-in-memory/5126)

<div class="topic-metadata">

**Author:** [@ktdiedrich](https://discourse.itk.org/u/ktdiedrich)\
**Replies:** 1\
**Last updated:** [June 23, 2022, 12:23pm UTC](https://discourse.itk.org/t/is-there-a-way-to-read-a-dicom-from-bytes-in-memory/5126 "2022-06-23T12:23:30Z")

</div>

Is there a way to read a DICOM from bytes in memory into a SimpleITK Image object? This is where the DICOM slice instances are each a binary memory blob. There is SimpleITK.GetImageFromArray(image\_volume) that can create…

[Previous page](https://discourse.itk.org/latest.md?page=35)

[Next page](https://discourse.itk.org/latest.md?page=37)
