JPEG lossless Cornell images with Huffman table overflow

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Geert Vandenbussche
Posts: 13
Joined: Tue, 2018-11-13, 09:05

JPEG lossless Cornell images with Huffman table overflow

#1 Post by Geert Vandenbussche »

Hi,

I have successfully processed 16-bit monochrome JPEG lossless objects compressed with the Cornell codec. However I also see some 8-bit RGB objects that have been compressed with the Cornell codec displaying incorrectly.
Decompressing these objects with dcmdjpeg doesn't give the 'bad Huffman code' warning.
(0028,0002) Samples Per Pixel 3
(0028,0004) Photometric Interpretation RGB
(0028,0006) Planar Configuration 0
(0028,0010) Rows 768
(0028,0011) Columns 1024
(0028,0014) Ultrasound Color Data Present 1
(0028,0100) Bits Allocated 8
(0028,0101) Bits Stored 8
(0028,0102) High Bit 7
(0028,0103) Pixel Representation 0
(0028,0301) Burned In Annotation YES
(0028,1050) Window Center 127
(0028,1051) Window Width 254
(0028,2110) Lossy Image Compression 00
Is this a known issue, and related to the 16-bit issue?

Thanks!

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: JPEG lossless Cornell images with Huffman table overflow

#2 Post by Marco Eichelberg »

I don't think this is related to the "well-known" Cornell bug, which is an overflow in the Huffman table values that only occurs when the Cornell encoder is used for image data with more than 8 bits/sample.

Post Reply

Who is online

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