[Insight-users] [Gdcm2] Reading DICOM spacing

Mario Ceresa mrceresa at gmail.com
Mon Apr 26 07:53:30 EDT 2010


Done:

https://sourceforge.net/tracker/?func=detail&aid=2992281&group_id=137895&atid=739587

thanks for your help in tracking down the problem,

BTW, I use gdcm 2.0.14

Mario

On 26 April 2010 13:00, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> On Mon, Apr 26, 2010 at 12:48 PM, Mario Ceresa <mrceresa at gmail.com> wrote:
>> Thanks Jean-Pierre you are right.
>>
>> I read the original images from the directory and ITK (which uses
>> gdcm) gives the correct values for the spacing:
>>
>> In [4]: img.GetSpacing()
>> Out[4]: itkVectorD3([0.808594, 0.808594, 5])
>>
>> The image I sent was the first step of a long processing algorithm and
>> I wasn't aware that I should have changed the dicom tag manually to
>> reflect the change.
>>
>> So probably it is not a *legal* image and gdcm has all the rights to
>> misbehave. Still a warning somewhere would have been helpful :)
>
> Correct. Please open a bug report for this, I thought this was fixed
> at some point, but maybe is this fixed only when using ITK+GDCM 2.x.
>
>> Is there any way to get familiarized with those subtle aspects of the
>> dicom standard without reading the full specification?
>>
>> Do you know of any "dicom image validator" to check for similar
>> problem in the future? I found the one from offis:
>>
>> http://dicom.offis.de/dcmcheck.php.en
>>
>> but there is no source code nor binary available.
>
> I use dciodvfy from the dicom3tools package.
>
> --
> Mathieu
>


More information about the Insight-users mailing list