Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JPEG lossless

69 views
Skip to first unread message

wanglon...@163.com

unread,
Apr 25, 2012, 3:25:19 AM4/25/12
to
hello all:
Recently,I decode a DICOM file whose transfer syntax is
1.2.840.1008.1.2.4.57,Bits allocated=16,Bits stored=12,bits high=11,
pixel representation=1。I know how to get the Huffman table and get the
data from the bits stream。However,I have a problem :what does the data
mean?do I need to remove high bits ? the data is the pixel data that
every byte mean pixel data ? Can anyone give me some advices ? Thank
you very much !

Marco Eichelberg

unread,
May 4, 2012, 3:35:12 AM5/4/12
to
Dear anonymous,
After decompression, the sequence of bytes comprising the content of
(7fe0,0010) Pixel Data needs to interpreted just as if the data had
been read from an uncompressed DICOM file in default transfer syntax,
i.e. you indeed need to mask bits 12-15 of each 16-bit-field
(which must be interpreted as being in little endian byte order)
with the sign bit, i.e. replicate bit 11 in the higher order bits
if you want a correctly interpretable signed short integer
(and your underlying CPU architecture uses two's complement to
represent signed).

Best regards,
Marco Eichelberg

0 new messages