[ITK] [ITK-users] gdcmIO reader has known bugs?
Jim Miller
millerjv at gmail.com
Thu Apr 17 11:21:46 EDT 2014
The rescale intersept needs to be managed by the code calling gdcm. When ITK reads a file, the rescale intersept is applied to the pixel data. At that point the ITK images has a rescale intersept of 0. If the. Want to write the data back out as it came in, you will need to remove the rescale intersept from the pixel data and then add that tag to the meta data dictionary to write out.
Jim
> On Apr 17, 2014, at 11:09 AM, Dr Nick Patterson <pattersonnp.work at gmail.com> wrote:
>
>
> Hi,
> I have been using the gdcmIO image reader process dicom images. I wondered if anyone else regularly uses this and wanted to know if anyone else has found that it is exceptionally buggy? I have had a number of issues with ITK examples, and when I have started to adapt code to my own uses I have better understood where my programs are failing and why the outputs don’t look as they should.
>
> It seems that the GDCM integration seems to struggle badly in correctly reading DICOM tags. For example, ImagePatientPosition tags are read correctly in some instances but in others the Z component it changed to 1. This is the same for the Origin tag which is changed to [0,0,0]. Having a look around some forums, there have been a number of posts regarding issues such as this over the years. Also, even in cases where the DICOM file header is correctly read in, when writing back out to another DICOM file the tags are changed to incorrect values. For example, the read in value of Rescale Intercept is -1024, but is changed to 0 when the header is copied to a new DICOM file.
>
>
> I find this to be strange behaviour but was interested to know of other peoples experiences using GDCM alongside ITK.
>
> Nick.
>
>
> _____________________________________
> 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://www.itk.org/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://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list