# \#dicom

**URL:** https://discourse.itk.org/tag/dicom/13.md?match_all_tags=true&page=1&tags%5B%5D=dicom

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

**Page:** 2

---

## [Reading dicom series with SimpleITK and filesort](https://discourse.itk.org/t/reading-dicom-series-with-simpleitk-and-filesort/1577)

<div class="topic-metadata">

**Author:** [@jonasteuwen](https://discourse.itk.org/u/jonasteuwen)\
**Replies:** 8\
**Last updated:** [December 1, 2023, 2:27pm UTC](https://discourse.itk.org/t/reading-dicom-series-with-simpleitk-and-filesort/1577 "2023-12-01T14:27:20Z")

</div>

I am trying to read DICOM series using SimpleITK. The current situation is that I have a folders with a lot of dicom series in there, and I only need a few. Luckily I know the prefix of the filenames so I can select the …

---

## [why can't itk read dicomdir files?](https://discourse.itk.org/t/why-cant-itk-read-dicomdir-files/6274)

<div class="topic-metadata">

**Author:** [@zx-lhb](https://discourse.itk.org/u/zx-lhb)\
**Replies:** 3\
**Last updated:** [November 6, 2023, 2:54am UTC](https://discourse.itk.org/t/why-cant-itk-read-dicomdir-files/6274 "2023-11-06T02:54:00Z")

</div>

hi, I tried to read dicom files which are all stored in a directory using the following code void readDicomSeries(const std::string& dicom\_dir, itk::Image\<float, 3\>::Pointer& out\_image) { using ImageIOType = itk::GD…

---

## [Reading Dicom sequence data with SimpleITK](https://discourse.itk.org/t/reading-dicom-sequence-data-with-simpleitk/2877)

<div class="topic-metadata">

**Author:** [@jonasteuwen](https://discourse.itk.org/u/jonasteuwen)\
**Replies:** 14\
**Last updated:** [October 31, 2023, 7:41am UTC](https://discourse.itk.org/t/reading-dicom-sequence-data-with-simpleitk/2877 "2023-10-31T07:41:50Z")

</div>

When reading mammography images there are several Dicom tags relevant to be able to display the image correctly as described in the dicom standard. These are stored in the VOILUTFunction and VOILUTSequence. The first is …

---

## [SimpleITK and Python 3.11](https://discourse.itk.org/t/simpleitk-and-python-3-11/6234)

<div class="topic-metadata">

**Author:** [@Wallesss](https://discourse.itk.org/u/Wallesss)\
**Replies:** 18\
**Last updated:** [September 29, 2023, 2:01pm UTC](https://discourse.itk.org/t/simpleitk-and-python-3-11/6234 "2023-09-29T14:01:03Z")

</div>

Hello, the SimpleITK 1.2.4 library does not connect to the project and the error keeps appearing: ModuleNotFoundError: no module named ‘simpleitk.\_simpleitk’. Python version is 3.11. Spyder version is 5.4. When using the…

---

## [How to remove CT bed from 3D CT image?](https://discourse.itk.org/t/how-to-remove-ct-bed-from-3d-ct-image/6219)

<div class="topic-metadata">

**Author:** [@debapriya](https://discourse.itk.org/u/debapriya)\
**Replies:** 6\
**Last updated:** [September 22, 2023, 3:52pm UTC](https://discourse.itk.org/t/how-to-remove-ct-bed-from-3d-ct-image/6219 "2023-09-22T15:52:01Z")

</div>

I have 3D CT image of the head (DICOM image). It looks like the following. I want to remove the imaging machine from the image. Is there any function in SimpleITK, which does this? I saw a previous query similar to …

---

## [How to convert .nii image to dicom?](https://discourse.itk.org/t/how-to-convert-nii-image-to-dicom/6197)

<div class="topic-metadata">

**Author:** [@debapriya](https://discourse.itk.org/u/debapriya)\
**Replies:** 15\
**Last updated:** [September 14, 2023, 5:16pm UTC](https://discourse.itk.org/t/how-to-convert-nii-image-to-dicom/6197 "2023-09-14T17:16:31Z")

</div>

I have downloaded a brain image dataset, where images are in .nii format. Please tell me how to convert these images to .dicom format, without any loss of image information.

---

## [Resample to same Spacing and Size and Align to same Origin](https://discourse.itk.org/t/resample-to-same-spacing-and-size-and-align-to-same-origin/1378)

<div class="topic-metadata">

**Author:** [@ral\_san](https://discourse.itk.org/u/ral_san)\
**Replies:** 27\
**Last updated:** [September 8, 2023, 3:42pm UTC](https://discourse.itk.org/t/resample-to-same-spacing-and-size-and-align-to-same-origin/1378 "2023-09-08T15:42:04Z")

</div>

I have a set of 4 DICOM CT Volumes which I am reading with SimpleITK ImageSeriesReader. Two of the images represent the CT of patient before and after the surgery. The other two images are binary segmentation masks segme…

---

## [ITKIOGDCM error with long dicom datasets](https://discourse.itk.org/t/itkiogdcm-error-with-long-dicom-datasets/6173)

<div class="topic-metadata">

**Author:** [@arvequina](https://discourse.itk.org/u/arvequina)\
**Replies:** 0\
**Last updated:** [September 1, 2023, 9:21am UTC](https://discourse.itk.org/t/itkiogdcm-error-with-long-dicom-datasets/6173 "2023-09-01T09:21:20Z")

</div>

Hi! First thank you to all the contributors in here as it is always super useful. Probably this one is more indicated for the GDCM guru @mathieu.malaterre :sweat\_smile: I ran into a problem using GDCM to read dicom file…

---

## [Is it possible to convert to Hounsfield Units in Sitk?](https://discourse.itk.org/t/is-it-possible-to-convert-to-hounsfield-units-in-sitk/5061)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 5\
**Last updated:** [August 14, 2023, 12:56pm UTC](https://discourse.itk.org/t/is-it-possible-to-convert-to-hounsfield-units-in-sitk/5061 "2023-08-14T12:56:09Z")

</div>

Hi, Is there a function in SITK to convert the pixel values in dicom CT images to Hounsfield Units (HU) ? This is what I currently do: def transform\_to\_hu(slices): images = np.stack(\[file.pixel\_array for file in …

---

## [Positioning of CT volume for DRR generation](https://discourse.itk.org/t/positioning-of-ct-volume-for-drr-generation/6133)

<div class="topic-metadata">

**Author:** [@Vojtech\_Benda](https://discourse.itk.org/u/Vojtech_Benda)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 2:25pm UTC](https://discourse.itk.org/t/positioning-of-ct-volume-for-drr-generation/6133 "2023-08-10T14:25:02Z")

</div>

Hello, I’m trying to generate DRR images from CT slices at certain angles (0°, 45°, 90°…). I’m using this C++ DRR example rewrote in Python: https://github.com/Vojtech-Benda/DRR\_generation/blob/main/drrGen.py I managed …

---

## [Pixel Representation](https://discourse.itk.org/t/pixel-representation/6129)

<div class="topic-metadata">

**Author:** [@mmeltsner](https://discourse.itk.org/u/mmeltsner)\
**Replies:** 4\
**Last updated:** [August 10, 2023, 8:41am UTC](https://discourse.itk.org/t/pixel-representation/6129 "2023-08-10T08:41:53Z")

</div>

Hi, I am reading in a dicom image via GDCM as unsigned short. The pixel representation of the imported dicom image is 0 (unsigned short). I confirmed that the component type and internal component types are USHORT. …

---

## [Unit of Vectors in a Deformation/displacement Vector Field](https://discourse.itk.org/t/unit-of-vectors-in-a-deformation-displacement-vector-field/6101)

<div class="topic-metadata">

**Author:** [@RT\_newbie](https://discourse.itk.org/u/RT_newbie)\
**Replies:** 2\
**Last updated:** [August 1, 2023, 8:05am UTC](https://discourse.itk.org/t/unit-of-vectors-in-a-deformation-displacement-vector-field/6101 "2023-08-01T08:05:42Z")

</div>

Hi I have a basic question that I cannot wrap my head around because I might have thought about a problem to solve for too long. When I non-rigidly register two images and look at the deformation field array, are the v…

---

## [Coregistration of DICOM series with different resolutions](https://discourse.itk.org/t/coregistration-of-dicom-series-with-different-resolutions/6091)

<div class="topic-metadata">

**Author:** [@vstevensf](https://discourse.itk.org/u/vstevensf)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 3:26pm UTC](https://discourse.itk.org/t/coregistration-of-dicom-series-with-different-resolutions/6091 "2023-07-25T15:26:33Z")

</div>

Hi – was just looking through the documentation for ITK/SimpleITK, with the goal of coregistering two DICOM series, but with different numbers of “slices” (images) per series. For example, coregistering a series of T2 Fl…

---

## [Slice 3D volume along a specific axis using python ITK](https://discourse.itk.org/t/slice-3d-volume-along-a-specific-axis-using-python-itk/6005)

<div class="topic-metadata">

**Author:** [@zemmyang](https://discourse.itk.org/u/zemmyang)\
**Replies:** 7\
**Last updated:** [June 29, 2023, 2:00pm UTC](https://discourse.itk.org/t/slice-3d-volume-along-a-specific-axis-using-python-itk/6005 "2023-06-29T14:00:41Z")

</div>

I found Read DICOM Series and Write 3D Image — v5.3.0 and it works, but I can only get slices from one axis (along z in my case). Is there a way to specify which axis I’m slicing along (I need x and y as well). I saw a …

---

## [Parts of registered images missing.](https://discourse.itk.org/t/parts-of-registered-images-missing/5969)

<div class="topic-metadata">

**Author:** [@RobertTheSquirrel](https://discourse.itk.org/u/RobertTheSquirrel)\
**Replies:** 3\
**Last updated:** [May 29, 2023, 10:09pm UTC](https://discourse.itk.org/t/parts-of-registered-images-missing/5969 "2023-05-29T22:09:10Z")

</div>

Greetings! I am a uni student relatively new to image/file processing. I am encountering something which I view as an issue during the processing of my 3D images. For the record, what I do with the original DICOM images…

---

## [Can itk read RTplan files？](https://discourse.itk.org/t/can-itk-read-rtplan-files/5957)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 5\
**Last updated:** [May 20, 2023, 2:06pm UTC](https://discourse.itk.org/t/can-itk-read-rtplan-files/5957 "2023-05-20T14:06:37Z")

</div>

Can itk read RTplan files？I want get 300a 012c

---

## [Relationship between DICOM coordinate system and IEC 61217 coordinate system](https://discourse.itk.org/t/relationship-between-dicom-coordinate-system-and-iec-61217-coordinate-system/3508)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 4\
**Last updated:** [May 20, 2023, 4:42am UTC](https://discourse.itk.org/t/relationship-between-dicom-coordinate-system-and-iec-61217-coordinate-system/3508 "2023-05-20T04:42:39Z")

</div>

Do anyone know what’s the relationship between the DICOM coordinate system used by ITK and IEC 61217 coordinate system such as gantry coordinate system, beam limiting device coordinate system, etc? How can I transform be…

---

## [I would like to ask a question about the dicom image center](https://discourse.itk.org/t/i-would-like-to-ask-a-question-about-the-dicom-image-center/5955)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 1\
**Last updated:** [May 18, 2023, 12:47pm UTC](https://discourse.itk.org/t/i-would-like-to-ask-a-question-about-the-dicom-image-center/5955 "2023-05-18T12:47:42Z")

</div>

cbct origin\[-140, -140, -140\] cbct spacing\[0.5, 0.5, 0.5\] cbct size\[560, 560, 560\] cbct centerPoint\[-280, -280, 0\] cbct direction-1 0 0 0 -1 0 0 0 1 This is a CBCT image, and I don’t know if the information in thi…

---

## [Gantry tilt correction for list of DICOM images](https://discourse.itk.org/t/gantry-tilt-correction-for-list-of-dicom-images/5907)

<div class="topic-metadata">

**Author:** [@EthanHarvey98](https://discourse.itk.org/u/EthanHarvey98)\
**Replies:** 3\
**Last updated:** [May 1, 2023, 7:47pm UTC](https://discourse.itk.org/t/gantry-tilt-correction-for-list-of-dicom-images/5907 "2023-05-01T19:47:25Z")

</div>

Hello, I am working on writing my own gantry tilt correction function in Python. The function takes in a list of correctly ordered DICOM images loaded by pydicom, corrects each slice, and returns a corrected 3D image. d…

---

## [reads DCM volume with grid transform, python](https://discourse.itk.org/t/reads-dcm-volume-with-grid-transform-python/5878)

<div class="topic-metadata">

**Author:** [@Thirawat](https://discourse.itk.org/u/Thirawat)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 4:38am UTC](https://discourse.itk.org/t/reads-dcm-volume-with-grid-transform-python/5878 "2023-04-28T04:38:25Z")

</div>

Hi all, I have Dicom file that contains Dicom volume grid transform so, I want to read Dicom with that transformation. now I can only read raw Dicom My code: def readDCM(folder\_path, win\_level=50, win\_width=100): …

---

## [Unable to get DICOM SQ tags from simpleITK series reader metadata keys](https://discourse.itk.org/t/unable-to-get-dicom-sq-tags-from-simpleitk-series-reader-metadata-keys/2321)

<div class="topic-metadata">

**Author:** [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Replies:** 8\
**Last updated:** [April 1, 2023, 12:36pm UTC](https://discourse.itk.org/t/unable-to-get-dicom-sq-tags-from-simpleitk-series-reader-metadata-keys/2321 "2023-04-01T12:36:35Z")

</div>

Hi, I am I read a dicom series using series reader. I wanted to read dicom metadata but I could not see metadata keys that further has collection of dicom tags in it. As an example I wish to read 0054|0016 which further …

---

## [itk5.3 debug version can not read dicom serices image](https://discourse.itk.org/t/itk5-3-debug-version-can-not-read-dicom-serices-image/5790)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 0\
**Last updated:** [March 10, 2023, 2:14am UTC](https://discourse.itk.org/t/itk5-3-debug-version-can-not-read-dicom-serices-image/5790 "2023-03-10T02:14:19Z")

</div>

InsightToolkit-5.3rc04 this is my version,Is it the problem of itk library,The release version is OK.I also tried version 5.2. Debug is normal, but release is not. This makes me confused.

---

## [About itk image format conversion](https://discourse.itk.org/t/about-itk-image-format-conversion/5780)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.itk.org/u/ma1282029525)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 1:45pm UTC](https://discourse.itk.org/t/about-itk-image-format-conversion/5780 "2023-03-03T13:45:13Z")

</div>

I am now completing the interface of a registration module, but the images given to me by others are many sequence images in gdcm format. How can I convert these images into the format available for registration.

---

## [Saving LabelOverlay Image as DICOM series](https://discourse.itk.org/t/saving-labeloverlay-image-as-dicom-series/5689)

<div class="topic-metadata">

**Author:** [@Franciska](https://discourse.itk.org/u/Franciska)\
**Replies:** 10\
**Last updated:** [February 17, 2023, 5:12am UTC](https://discourse.itk.org/t/saving-labeloverlay-image-as-dicom-series/5689 "2023-02-17T05:12:06Z")

</div>

Hi! I have a DICOM series, and with the segmentations I create a LabelOverlay Image. When I write it out as a DICOM series, I modified the following datatags in the created image, to get an RGB image.: image\_slice.Se…

---

## [Creating mask from rtstruct](https://discourse.itk.org/t/creating-mask-from-rtstruct/3826)

<div class="topic-metadata">

**Author:** [@roirodriguez](https://discourse.itk.org/u/roirodriguez)\
**Replies:** 4\
**Last updated:** [February 16, 2023, 5:45pm UTC](https://discourse.itk.org/t/creating-mask-from-rtstruct/3826 "2023-02-16T17:45:57Z")

</div>

Hi, I’m just beginning with SimpleITK and all other medical image related software. I’m actually loading some dicom series and their corresponding RTSTRUCT contours in python, manually with numpy, because as far as i kn…

---

## [Saving DICOM Series](https://discourse.itk.org/t/saving-dicom-series/5684)

<div class="topic-metadata">

**Author:** [@Franciska](https://discourse.itk.org/u/Franciska)\
**Replies:** 5\
**Last updated:** [February 8, 2023, 3:26pm UTC](https://discourse.itk.org/t/saving-dicom-series/5684 "2023-02-08T15:26:38Z")

</div>

Hello! I am reading in a DICOM series with SimpleITK. If I save this as a nii.gz file, it shows up perfectly in Slicer, however if I try to save it as a DICOM series, based on this example code, the DICOM series shows up…

---

## [Multimodal Registration of Dicom file in physical space (mm space)](https://discourse.itk.org/t/multimodal-registration-of-dicom-file-in-physical-space-mm-space/5639)

<div class="topic-metadata">

**Author:** [@gaurav\_patel](https://discourse.itk.org/u/gaurav_patel)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 5:13am UTC](https://discourse.itk.org/t/multimodal-registration-of-dicom-file-in-physical-space-mm-space/5639 "2023-01-23T05:13:28Z")

</div>

I am new to simpleITK. My task is to register MR volume with CT volume. The CT volume is entire body while MR volume is abdomen only. Moreover MR volume is rotated i.e. direction cosines are not (1,0,0,1) from dicom IOP …

---

## [Resampling two volumes with different number of slices.](https://discourse.itk.org/t/resampling-two-volumes-with-different-number-of-slices/5051)

<div class="topic-metadata">

**Author:** [@DushiFdo](https://discourse.itk.org/u/DushiFdo)\
**Replies:** 10\
**Last updated:** [January 11, 2023, 4:45pm UTC](https://discourse.itk.org/t/resampling-two-volumes-with-different-number-of-slices/5051 "2023-01-11T16:45:29Z")

</div>

I have two CT volumetric scans for the same patient (for arterial and venous) with different number of slices. e.g. arterial scan has ~146 dicom images whereas venous scan has ~156 dicom images. I want to resample one p…

---

## [SimpleITK write Image to Dicom](https://discourse.itk.org/t/simpleitk-write-image-to-dicom/5594)

<div class="topic-metadata">

**Author:** [@jeffppp](https://discourse.itk.org/u/jeffppp)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 2:18am UTC](https://discourse.itk.org/t/simpleitk-write-image-to-dicom/5594 "2023-01-09T02:18:04Z")

</div>

I had read a series Dicom in Image class and resample the pixel to 1x1x1. I want to write the resampled Image to Dicom. But I only found the example in python. In C#, how should I split the 3D image to 2D image like imag…

---

## [Save Segmentation as DICOM file with Simple ITK and Python](https://discourse.itk.org/t/save-segmentation-as-dicom-file-with-simple-itk-and-python/5593)

<div class="topic-metadata">

**Author:** [@riba](https://discourse.itk.org/u/riba)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 2:02pm UTC](https://discourse.itk.org/t/save-segmentation-as-dicom-file-with-simple-itk-and-python/5593 "2022-12-28T14:02:47Z")

</div>

I want to write the image an numpy array (with zeros and ones only) which is the result of the segmentation of a CT image. How can I save it using sitk? I don’t know how to set some of the metadata as: high bit, bits al…

[Previous page](https://discourse.itk.org/tag/dicom/13.md?match_all_tags=true&tags%5B%5D=dicom)

[Next page](https://discourse.itk.org/tag/dicom/13.md?match_all_tags=true&page=2&tags%5B%5D=dicom)
