# Latest

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

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

**Page:** 70

---

## [An error with curvature flow filter code](https://discourse.itk.org/t/an-error-with-curvature-flow-filter-code/2977)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 7:58pm UTC](https://discourse.itk.org/t/an-error-with-curvature-flow-filter-code/2977 "2020-04-20T19:58:13Z")

</div>

Hi, I wrote this code about curvature flow filter for 3D images but there is an error in this line: Writer-\>SetInput(Smoother-\>GetOutput()); Does any one know what is the problem? #include "itkImage.h" #include "itk…

---

## [How to configure beam characteristics such as filtration](https://discourse.itk.org/t/how-to-configure-beam-characteristics-such-as-filtration/2969)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.itk.org/u/isuruwi)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 7:28pm UTC](https://discourse.itk.org/t/how-to-configure-beam-characteristics-such-as-filtration/2969 "2020-04-20T19:28:16Z")

</div>

I’m currently working on generating DRR image from 3D CT volumes. Is there a way to configure beam characteristics such as filtration ? That is for an example we use a 120kVp beam, and the filtration is given as 16.25m…

---

## [How to run examples from https://itk.org/Wiki/ITK/Examples where we need both ITK and VTK?](https://discourse.itk.org/t/how-to-run-examples-from-https-itk-org-wiki-itk-examples-where-we-need-both-itk-and-vtk/1674)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 5\
**Last updated:** [April 20, 2020, 1:12pm UTC](https://discourse.itk.org/t/how-to-run-examples-from-https-itk-org-wiki-itk-examples-where-we-need-both-itk-and-vtk/1674 "2020-04-20T13:12:41Z")

</div>

I wanted to try the examples from https://itk.org/Wiki/ITK/Examples. This needs "ITK-VTK glue " to be built. I am not understanding how to do this. I have installed ITK and tried executing a few examples. Do I need to…

---

## [itk js readImageDICOMFileSeries Problem to read big series](https://discourse.itk.org/t/itk-js-readimagedicomfileseries-problem-to-read-big-series/2856)

<div class="topic-metadata">

**Author:** [@Athius](https://discourse.itk.org/u/Athius)\
**Replies:** 18\
**Last updated:** [April 20, 2020, 7:33am UTC](https://discourse.itk.org/t/itk-js-readimagedicomfileseries-problem-to-read-big-series/2856 "2020-04-20T07:33:37Z")

</div>

Hi everyone, I try itk.js using this example (ITK Read Dicom). So I have a NodeJS server and launch a simple webpage to open DICOM Series. When I try to load big Dicom Series (more than 700 images), then the loader do…

---

## [Load stacks of files into viewer](https://discourse.itk.org/t/load-stacks-of-files-into-viewer/2962)

<div class="topic-metadata">

**Author:** [@dpedrosac](https://discourse.itk.org/u/dpedrosac)\
**Replies:** 5\
**Last updated:** [April 18, 2020, 8:15am UTC](https://discourse.itk.org/t/load-stacks-of-files-into-viewer/2962 "2020-04-18T08:15:05Z")

</div>

Dear all, I think that’s a rather simple question but I just cannot get my head around how to solve this. I managed to use SimpleITK for displaying both DICOM files and folders and single Nifti (or other files) using s…

---

## [How can i read a dicom file in "float pixel format", filtered and write it to an "unsigned char pixel format" dicom file?](https://discourse.itk.org/t/how-can-i-read-a-dicom-file-in-float-pixel-format-filtered-and-write-it-to-an-unsigned-char-pixel-format-dicom-file/2967)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.itk.org/u/wulicheng)\
**Replies:** 0\
**Last updated:** [April 18, 2020, 2:14am UTC](https://discourse.itk.org/t/how-can-i-read-a-dicom-file-in-float-pixel-format-filtered-and-write-it-to-an-unsigned-char-pixel-format-dicom-file/2967 "2020-04-18T02:14:42Z")

</div>

ConnectedThresholdOutput3.dcm (513.0 KB) next is my code from web: typedef float InternalPixelType; const unsigned int Dimension = 2; typedef signed short InputPixelType; typedef signed short O…

---

## [Decode Tiff Image Array Buffer to pixel data](https://discourse.itk.org/t/decode-tiff-image-array-buffer-to-pixel-data/2964)

<div class="topic-metadata">

**Author:** [@Jayesh\_Borgaonkar](https://discourse.itk.org/u/Jayesh_Borgaonkar)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 5:34pm UTC](https://discourse.itk.org/t/decode-tiff-image-array-buffer-to-pixel-data/2964 "2020-04-17T17:34:10Z")

</div>

I want to decode a 16 bit Tiff Image Array Buffer shown below and extract the data in 16 bits, which is pixel intensities in Java script Any library or decoder that can extract 16 bit tiff image to 16 bit data, i know t…

---

## [Deformable Registration](https://discourse.itk.org/t/deformable-registration/2955)

<div class="topic-metadata">

**Author:** [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 3:05pm UTC](https://discourse.itk.org/t/deformable-registration/2955 "2020-04-17T15:05:33Z")

</div>

Hi, I am trying to do a deformable registration after doing a landmark-based registration between a triangular simplex mesh and CT image. In the snapshot, after using a landmark-based registration I got the registere…

---

## [Find cylinder-like sub-regions of a geometric surface or mesh](https://discourse.itk.org/t/find-cylinder-like-sub-regions-of-a-geometric-surface-or-mesh/2956)

<div class="topic-metadata">

**Author:** [@dlrdave](https://discourse.itk.org/u/dlrdave)\
**Replies:** 4\
**Last updated:** [April 17, 2020, 1:39pm UTC](https://discourse.itk.org/t/find-cylinder-like-sub-regions-of-a-geometric-surface-or-mesh/2956 "2020-04-17T13:39:02Z")

</div>

We are creating iso-surfaces, from CT scan data, using thresholds to get regions of higher intensity value and using a connected components filter to split the result into multiple sub-regions. Within these sub-regions,…

---

## [How to register 3D to 4D](https://discourse.itk.org/t/how-to-register-3d-to-4d/2957)

<div class="topic-metadata">

**Author:** [@mridev](https://discourse.itk.org/u/mridev)\
**Replies:** 1\
**Last updated:** [April 17, 2020, 12:02pm UTC](https://discourse.itk.org/t/how-to-register-3d-to-4d/2957 "2020-04-17T12:02:35Z")

</div>

Hi all, I have a 4D image X which is a stack of few 3D volumes. Let’s assume that these 3D volumes are already registered. I also have a 3D volume Y with a different contrast and would like to register it to the 4D imag…

---

## [Nifti (RPI orientation) file exported to DICOM - wrong orientation](https://discourse.itk.org/t/nifti-rpi-orientation-file-exported-to-dicom-wrong-orientation/1612)

<div class="topic-metadata">

**Author:** [@mihail.isakov](https://discourse.itk.org/u/mihail.isakov)\
**Replies:** 10\
**Last updated:** [April 17, 2020, 11:40am UTC](https://discourse.itk.org/t/nifti-rpi-orientation-file-exported-to-dicom-wrong-orientation/1612 "2020-04-17T11:40:30Z")

</div>

Hello, Just FYI. experiment: take this Nifti file https://nifti.nimh.nih.gov/nifti-1/data/avg152T1\_LR\_nifti.nii.gz/file\_view and export to DICOM result is horrible wrong. It happens because GDCM uses Multi Frame G…

---

## [why the running time of CPU and GPU are same, while i use itkRWSegmentationFilter and itkCudaRWSegmentationFilter](https://discourse.itk.org/t/why-the-running-time-of-cpu-and-gpu-are-same-while-i-use-itkrwsegmentationfilter-and-itkcudarwsegmentationfilter/2959)

<div class="topic-metadata">

**Author:** [@KaryLiang](https://discourse.itk.org/u/KaryLiang)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 3:02am UTC](https://discourse.itk.org/t/why-the-running-time-of-cpu-and-gpu-are-same-while-i-use-itkrwsegmentationfilter-and-itkcudarwsegmentationfilter/2959 "2020-04-17T03:02:31Z")

</div>

code from:GitHub - enricperera/itkRWSegmentationFilter: ITK-like filter for image segmentation using the random walker algorithm I run the code itkRWSegmentationFilter successful in CPU, but there has some error when i …

---

## [Writting back the cropped volume](https://discourse.itk.org/t/writting-back-the-cropped-volume/2917)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 11\
**Last updated:** [April 16, 2020, 10:17pm UTC](https://discourse.itk.org/t/writting-back-the-cropped-volume/2917 "2020-04-16T22:17:15Z")

</div>

Hi, I have segmented the heart based on a cropped volume and now I want to write this cropped volume back to the original image size. How can I do that in ITK with c++? I really appreciate it if you could help me.

---

## [resampling](https://discourse.itk.org/t/resampling/2954)

<div class="topic-metadata">

**Author:** [@Dodox](https://discourse.itk.org/u/Dodox)\
**Replies:** 5\
**Last updated:** [April 16, 2020, 3:38pm UTC](https://discourse.itk.org/t/resampling/2954 "2020-04-16T15:38:45Z")

</div>

hello every one , sorry for my english, i have a question about this part of code (you can find here the complete code ) def resample(image, transform): reference\_image = image interpolator = sitk.sitkCosineWindowedS…

---

## [Fatal errors C1083 and LNK1181 when using RTK module](https://discourse.itk.org/t/fatal-errors-c1083-and-lnk1181-when-using-rtk-module/2951)

<div class="topic-metadata">

**Author:** [@Henco](https://discourse.itk.org/u/Henco)\
**Replies:** 6\
**Last updated:** [April 16, 2020, 2:47pm UTC](https://discourse.itk.org/t/fatal-errors-c1083-and-lnk1181-when-using-rtk-module/2951 "2020-04-16T14:47:52Z")

</div>

I’m unsure if this is an ITK or RTK forum question so I’ve posted it to both. I’m attempting to build ITK with the RTK module selected. I am attempting this on Windows, with RTK 2.1.0 and ITK 5.1.0. I was able to succes…

---

## [Mask (ROI) as NumPy array](https://discourse.itk.org/t/mask-roi-as-numpy-array/2933)

<div class="topic-metadata">

**Author:** [@3omarkamal](https://discourse.itk.org/u/3omarkamal)\
**Replies:** 8\
**Last updated:** [April 16, 2020, 1:47pm UTC](https://discourse.itk.org/t/mask-roi-as-numpy-array/2933 "2020-04-16T13:47:44Z")

</div>

I have a 3D nii image file. I have drawn a 3D label (ROI) in ITK snap. Now I want to analyze this ROI beyond the limited options in the labelIntensityStatistics. For example, I want to calculate the 10th, 20th, … percent…

---

## [DICOM Version supported by ITK 5.1](https://discourse.itk.org/t/dicom-version-supported-by-itk-5-1/2941)

<div class="topic-metadata">

**Author:** [@ShaneKirkbride](https://discourse.itk.org/u/ShaneKirkbride)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 1:53pm UTC](https://discourse.itk.org/t/dicom-version-supported-by-itk-5-1/2941 "2020-04-15T13:53:56Z")

</div>

Hello, Can someone help me find where the documentation shows the DICOM version supported by ITK? Thanks, ~Shane

---

## [Aorta segmentation](https://discourse.itk.org/t/aorta-segmentation/2916)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 3\
**Last updated:** [April 14, 2020, 5:09pm UTC](https://discourse.itk.org/t/aorta-segmentation/2916 "2020-04-14T17:09:47Z")

</div>

Hi, I wanna segment the aorta in a 3D CT image. since aorta has circle shape in axial view, I chose Hough transform algorithm. However, because Hough transform filter in ITK is designed for 2D images, I went through all…

---

## [Does readImageDICOMFileSeries handle uint16 encoded dicoms?](https://discourse.itk.org/t/does-readimagedicomfileseries-handle-uint16-encoded-dicoms/2622)

<div class="topic-metadata">

**Author:** [@Andrzej\_Marciniak](https://discourse.itk.org/u/Andrzej_Marciniak)\
**Replies:** 8\
**Last updated:** [April 14, 2020, 12:27pm UTC](https://discourse.itk.org/t/does-readimagedicomfileseries-handle-uint16-encoded-dicoms/2622 "2020-04-14T12:27:43Z")

</div>

Hello, I am using readimageDICOMFileSeries with the code as below. Everything worked perfectly when I had dicoms with data in UINT8 arrays. When I tested it with images with intensity values more than 255, I also recei…

---

## [how to wirte the dicom tags?(update my code)](https://discourse.itk.org/t/how-to-wirte-the-dicom-tags-update-my-code/2896)

<div class="topic-metadata">

**Author:** [@Amnesie](https://discourse.itk.org/u/Amnesie)\
**Replies:** 4\
**Last updated:** [April 13, 2020, 8:05pm UTC](https://discourse.itk.org/t/how-to-wirte-the-dicom-tags-update-my-code/2896 "2020-04-13T20:05:00Z")

</div>

hello every one, i am a new user with itk, Here is my question : how to automatic put some dicom tags in dicom when i turn raw volume data into dicom .? I wrote some codes to make 3D volumen data in 2d slice , it work…

---

## [PointSet to PointSet registration with random sampling](https://discourse.itk.org/t/pointset-to-pointset-registration-with-random-sampling/1502)

<div class="topic-metadata">

**Author:** [@Roulbac](https://discourse.itk.org/u/Roulbac)\
**Replies:** 7\
**Last updated:** [April 13, 2020, 7:05pm UTC](https://discourse.itk.org/t/pointset-to-pointset-registration-with-random-sampling/1502 "2020-04-13T19:05:49Z")

</div>

Hi, I need to register two point clouds; however my point sets have too many points, so it is quite slow to run. I have followed the example from the IterativeClosestPoint. A solution I can think of is to randomly sam…

---

## [Simple ITK Write to File Resampled DICOM](https://discourse.itk.org/t/simple-itk-write-to-file-resampled-dicom/2937)

<div class="topic-metadata">

**Author:** [@nppatt](https://discourse.itk.org/u/nppatt)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 1:00pm UTC](https://discourse.itk.org/t/simple-itk-write-to-file-resampled-dicom/2937 "2020-04-13T13:00:38Z")

</div>

Hi, The crude code written below is used to (1) read in a set of DICOM files, (2) resample and then (3)write back out the resampled data to DICOM files. Steps 1 and 2, seem to be OK, but step (3) fails with the followin…

---

## [How to write a custom Tag to an image (NRRD or other) header](https://discourse.itk.org/t/how-to-write-a-custom-tag-to-an-image-nrrd-or-other-header/565)

<div class="topic-metadata">

**Author:** [@fbudin](https://discourse.itk.org/u/fbudin)\
**Replies:** 5\
**Last updated:** [April 13, 2020, 11:54am UTC](https://discourse.itk.org/t/how-to-write-a-custom-tag-to-an-image-nrrd-or-other-header/565 "2020-04-13T11:54:51Z")

</div>

The following question was asked on the ITK user mailing list: I can’t find any possibility to add a field (custom or not) into a nrrd header. The NrrdImageIO doesn’t allow it (or I missed it). Is someone know how to…

---

## [Compiling SimpleITK](https://discourse.itk.org/t/compiling-simpleitk/2930)

<div class="topic-metadata">

**Author:** [@nppatt](https://discourse.itk.org/u/nppatt)\
**Replies:** 3\
**Last updated:** [April 12, 2020, 10:06am UTC](https://discourse.itk.org/t/compiling-simpleitk/2930 "2020-04-12T10:06:14Z")

</div>

Hi, I have been trying to compile SimpleITK, the source code pulled from the Git repository. The build stops at about 58% with the following:- In file included from /opt/SimpleITK/Code/Common/src/sitkTransform.cxx:20: …

---

## [Internal Boundary delineation](https://discourse.itk.org/t/internal-boundary-delineation/2931)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 2\
**Last updated:** [April 12, 2020, 12:20am UTC](https://discourse.itk.org/t/internal-boundary-delineation/2931 "2020-04-12T00:20:25Z")

</div>

Hi, I want to delineate the lowest and internal boundary of the attached image like the sample image I upload it (green line). Can anyone help me how I can do it?

---

## [error in opencv to itk image](https://discourse.itk.org/t/error-in-opencv-to-itk-image/2913)

<div class="topic-metadata">

**Author:** [@DP\_1991](https://discourse.itk.org/u/DP_1991)\
**Replies:** 6\
**Last updated:** [April 11, 2020, 1:13pm UTC](https://discourse.itk.org/t/error-in-opencv-to-itk-image/2913 "2020-04-11T13:13:05Z")

</div>

I have error can anyone help me ??

---

## [Support for 4D data type by ITK for Python?](https://discourse.itk.org/t/support-for-4d-data-type-by-itk-for-python/2925)

<div class="topic-metadata">

**Author:** [@mridev](https://discourse.itk.org/u/mridev)\
**Replies:** 0\
**Last updated:** [April 10, 2020, 8:46pm UTC](https://discourse.itk.org/t/support-for-4d-data-type-by-itk-for-python/2925 "2020-04-10T20:46:03Z")

</div>

Hi there, I need to use ITK in Python for loading 4D MRI (dynamic MRI, DWI, etc.). Does ITK in Python support 4D data type? I haven’t been able to process 4D data in ITK. SimpleITK in Python supports it, but I was wonde…

---

## [Problem in binary image](https://discourse.itk.org/t/problem-in-binary-image/2921)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 0\
**Last updated:** [April 10, 2020, 5:27pm UTC](https://discourse.itk.org/t/problem-in-binary-image/2921 "2020-04-10T17:27:48Z")

</div>

Hi, I used the following code for getting binary image, however, I am seeing some grayish spots on some slices. does anyone know what the problem is ? i also attached the resultant image. outbinary.nrrd (377.8 KB) #in…

---

## [Shape detection](https://discourse.itk.org/t/shape-detection/2922)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 0\
**Last updated:** [April 10, 2020, 5:48pm UTC](https://discourse.itk.org/t/shape-detection/2922 "2020-04-10T17:48:49Z")

</div>

Hi, I was wondering these two codes are applicable for 3D images ? CurvesLevelSetImageFilter.cxx and ShapeDetectionLevelSetFilter.cxx

---

## [Getting coronal view in each iteration](https://discourse.itk.org/t/getting-coronal-view-in-each-iteration/2912)

<div class="topic-metadata">

**Author:** [@basal](https://discourse.itk.org/u/basal)\
**Replies:** 1\
**Last updated:** [April 8, 2020, 9:44pm UTC](https://discourse.itk.org/t/getting-coronal-view-in-each-iteration/2912 "2020-04-08T21:44:15Z")

</div>

Hi, I want to go through all pixels in coronal plane on the 3D image and use sliceiterator. I was wondering how I can get coronal plane in each iteration for each slice? For instance, does the following code give me t…

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

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