Hi all,
I"m using the DCMTK for reading DICOM data sets, which has been working great (kudos to the developers!).
However, I've recently come across a data set that the DCMTK appears unable to load. The same data loads into numerous other DICOM viewers, so I know the data is OK (may not be well formed ...)
Using the dcmdump utility (from 3.5.4), I see an error reading a sequence Item (fffe,0000) tag. By setting the +E option to ignore errors, the remainder of the file looks fine (all critical tags are present and reasonable). But ... there's no PixelData tag! According to the other tools I've used, the pixel data is there.
So, either there is a bug in the DCMTK, or the data is not well formed. Unfortunately, I really need to load this data as it's coming from a PACS provider that services numerous Hospitals we deal with.
I don't know what else to check (bit of a DICOM novice), so any help trakcing this down would be appreciated.
I'm happy to send sample slice from this data set if it will help.
Thanks,
Gian
Problem reading DICOM file
Moderator: Moderator Team
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- OFFIS DICOM Team
- Posts: 1444
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
There is no reliable way of detecting the pixel data for an defectively encoded DICOM image. In this case, the encoding is really messed up and it is not even clear what the encoder tried to do, i.e. there is no simple or obvious way of fixing the image. Patching the file at offset 0x720 by replacing four bytes with FF FF 32 02 makes the image "readable" to DCMTK by disabling all the messed-up part, but the offset and exact bytes will not be the same for other images even of the same series.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest