[ITK] Writing a 3D image into DICOM series with correct geometry
Francois Budin
francois.budin at kitware.com
Fri Jul 7 12:43:54 EDT 2017
Hello Fijoy,
As far as I know this example is the best way to do what you are trying to
do. ITK does not currently have an easy way to save an itk::Image as a
DICOM series.
Thanks,
Francois
On Fri, Jul 7, 2017 at 11:04 AM, Fijoy Vadakkumpadan <tofijoy at gmail.com>
wrote:
> Hello,
>
> What is the best way to write a 3D itk::Image to DICOM series in a way
> that preserves geometry metadata (slice positions, orientation, and
> spacing)?
>
> The itk::Image I'm referring to is coming from a non-DICOM source. I tried
> to use itk::ImageSeriesWriter with itk::GDCMImageIO as the IO type to do
> the above writing. But that does not seem to automatically pick up the
> metadata from the image object - when I read the written series back (using
> itk::ImageSeriesReader), only the in-plane spacing is correctly set. After
> some research, I found this example
>
> https://itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM
>
> which explicitly sets the metadata dictionary for each slice before
> writing. Is this the best way?
>
> Thanks,
> --Fijoy
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170707/4df9ad4c/attachment-0001.html>
More information about the Community
mailing list