Problem on opening JPEG2000 compressed dicom file using DCMJP2K

Questions regarding the DCMJP2K library, a DCMTK add-on that implements support for JPEG 2000 compression (lossy and lossless) in DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Roger_MDC
Posts: 4
Joined: Thu, 2012-02-16, 02:56
Location: Taipei

Problem on opening JPEG2000 compressed dicom file using DCMJP2K

#1 Post by Roger_MDC »

Hi DCMTK members:

I've been trying to do a series of test on DCMJP2K module, which found one file that DCMJP2K module failed to decompress using example program dcmdjp2k.exe under default setup and debug mode:

cannot get marker segment
F: JPEG 2000 codec error: decompressing file: 91_image_0001_1.dcm

I'll send the file with same subject title, mind provide some insight on this specific JPEG2000 format file please? Really appreciated!

Best regards, Roger.

Uli Schlachter
DCMTK Developer
Posts: 120
Joined: Thu, 2009-11-26, 08:15

#2 Post by Uli Schlachter »

Hi,

first the bad news:
I can decompress this file with dcmdjp2k without any problem.
However, a warning is printed.

The reason that you can't decompress this file is that it does not conform to the DICOM standard. The DICOM JPEG 2000 transfer syntax requires that just the code stream is put into the dicom file, not the whole file format that the JPEG 2000 standard also specifies. Your file breaks this rule.

The reason that I can decompress this file is that we added support for the file format a while ago (D2ReadStream finds the code stream box and skips everything before it in the file format). In your sample file, the code stream starts 111 bytes into the byte stream. These bytes are simply skipped while decompressing.

Roger_MDC
Posts: 4
Joined: Thu, 2012-02-16, 02:56
Location: Taipei

#3 Post by Roger_MDC »

Hi Uli:

Thanks for the reply! Will do more test to identify the problem, really appreciated!

Best regards, Roger.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest