Proposals:Writing DICOM from non-DICOM

From KitwarePublic
Jump to navigationJump to search

The Problem

How to take a 3D image (not from DICOM) and write it as a series of DICOM files.

The current options

Multi-Frame DICOM

If the image is passed to an ImageFileWriter and a GDCMImageIO is connected to it, then the image will be writen as a single DICOM file with a multi-frame content.

ImageSeriesWriter

If we take a 3D image in ITK and pass it to the ImageSeriesWriter and set the ImageIO to be the GDCMImageIO class, then the series will be written but they will all have the same DICOM header, and the third component of the origin and spacing will not be correct.

The Way it should behave

Proposed solution