DCMTK fails to read this DICOM image (file) with the mesage: "Invalid DICOM image"
MANGO is able to load and display it.
I don't know how to send attachments here, so here is the link to Google Drive:
IM-0001-0001.dcm - https://drive.google.com/file/d/1c4kUrT ... sp=sharing
Here is the code I use:
UIHT32 flags = CIF_UsePresentationState |
CIF_IgnoreModalityTransformation |
CIF_IgnoreModalityLutBitDepth;
DicomImage* img = DicomImage( Name,flags ));
DCMTK not able to read an DICOM Image
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2501
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: DCMTK not able to read an DICOM Image
The answer is easy. When reading the DICOM image with debug mode enabled, you get the following output (excerpt):
The reason is also easy to understand: the public DCMTK does not support the decompression of DICOM images that are compressed with JPEG 2000. You either have to license the DCMJP2K extension (see here) or you need to add support for this compression on your own.
Code: Select all
D: transfer syntax of DICOM dataset: JPEG 2000 (Lossless only) (1.2.840.10008.1.2.4.90)
E: can't change to unencapsulated representation for pixel data
-
- Posts: 32
- Joined: Mon, 2018-11-12, 20:01
Re: DCMTK not able to read an DICOM Image
Vielen Dank!
-
- Posts: 32
- Joined: Mon, 2018-11-12, 20:01
Re: DCMTK not able to read an DICOM Image
How do I find out the licensing terms for a research application (Windows-only) at NYU School of Medicine (Radiology)?
Thank you
Artem Mikheev
mikhea01@nyumc.org
Thank you
Artem Mikheev
mikhea01@nyumc.org
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest