[Insight-developers] Failure to report read error on unreadable
DICOM file
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Aug 8 19:14:12 EDT 2005
Peter,
Sorry for not responding earlier.
I had a quick look at your DICOM, again there is a problem of
endianess, gdcm is trying to find image data but the tags are written in
big endian whereas the header is in little endian...
Anyway there is a test in gdcm, IsReadable, so yes gdcm should return
when it cannot read a DICOM image. I'll double check if in gdcm 1.0 the
test would fail on your image.
thanks for providing a dataset to reproduce the bug,
Mathieu
Peter Cech wrote:
> I forgot the link to the troubling data file:
> http://www.vision.ee.ethz.ch/~pcech/bugreports/GDCM-20050807/unreadable_data-anon.dcm
>
> On Mon, Aug 08, 2005 at 00:09:57 +0200, Peter Cech wrote:
>
>>Hi,
>>
>>I tried to load a volume from certain serie of DICOM slices, but all the
>>voxels in the image are zero (voxel and volume dimensions were correct).
>>As it turned out, gdcm is unable to read those files. In such case I
>>would expect reading to fail with an error.
>>
>>Could somebody check wheter wheter it is gdcm not reporting error or ITK
>>not checking for an error after reading pixel data?
>>
>>Regeards,
>>Peter Cech
>>_______________________________________________
>>Insight-developers mailing list
>>Insight-developers at itk.org
>>http://www.itk.org/mailman/listinfo/insight-developers
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
More information about the Insight-developers
mailing list