Discussion:
[ITK-users] Limitations on GDCMImageIO
Emiliano Beronich
2017-03-10 16:19:06 UTC
Permalink
Hi everyone,

While using the GDCMImageIO class to write a Dicom Image, I found some
limitations so I modified the class to correct them.
The limitations I found are:
1) Can't write a sequence or even less Sequence inside Sequences.
2) Can't write arrays of unsigned short (Example: (0054,0010)
EnergyWindowVector, (0054,0020) DetectorVector, (0054,0080) SliceVector).

In order to pass the data the array of unsigned short I'm using a
std::vector<unsigned short>. The sequences are stored in a Dictionary.

Attached is the class modified. I would be great to include these changes
in future versions or improve GDCMImageIO class to correct these
limitations.

HTH,
Emiliano Beronich
Matt McCormick
2017-03-11 14:59:03 UTC
Permalink
Hi Emiliano,

Thanks for sharing your work.

Please contribute the code as a patch along with a test as documented here:

https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch10.html

Thanks,
Matt

On Fri, Mar 10, 2017 at 11:19 AM, Emiliano Beronich
Post by Emiliano Beronich
Hi everyone,
While using the GDCMImageIO class to write a Dicom Image, I found some
limitations so I modified the class to correct them.
1) Can't write a sequence or even less Sequence inside Sequences.
2) Can't write arrays of unsigned short (Example: (0054,0010)
EnergyWindowVector, (0054,0020) DetectorVector, (0054,0080) SliceVector).
In order to pass the data the array of unsigned short I'm using a
std::vector<unsigned short>. The sequences are stored in a Dictionary.
Attached is the class modified. I would be great to include these changes in
future versions or improve GDCMImageIO class to correct these limitations.
HTH,
Emiliano Beronich
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users

Loading...