DCMTK not able to read an DICOM Image

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
artemmikheev
Posts: 32
Joined: Mon, 2018-11-12, 20:01

DCMTK not able to read an DICOM Image

#1 Post by artemmikheev »

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 ));

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DCMTK not able to read an DICOM Image

#2 Post by J. Riesmeier »

The answer is easy. When reading the DICOM image with debug mode enabled, you get the following output (excerpt):

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
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.

artemmikheev
Posts: 32
Joined: Mon, 2018-11-12, 20:01

Re: DCMTK not able to read an DICOM Image

#3 Post by artemmikheev »

Vielen Dank!

artemmikheev
Posts: 32
Joined: Mon, 2018-11-12, 20:01

Re: DCMTK not able to read an DICOM Image

#4 Post by artemmikheev »

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest