JPEG2000 Help(Icon Image Sequence issue)

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
angad
Posts: 112
Joined: Thu, 2010-02-18, 09:54

JPEG2000 Help(Icon Image Sequence issue)

#1 Post by angad »

Hi All,

I have tried to implement JPEG 2000 compression logic using OPENJPEG library.

For most of the cases, it worked fine.

But for studies with IconImageSequence , its crashing.

FOllowing is the ImageIconSequence tag :

(0028,0002) US 1 # 2, 1 SamplesPerPixel
(0028,0004) CS [PALETTE COLOR] # 14, 1 PhotometricInterpretation

(0028,0010) US 64 # 2, 1 Rows
(0028,0011) US 64 # 2, 1 Columns
(0028,0100) US 8 # 2, 1 BitsAllocated
(0028,0101) US 8 # 2, 1 BitsStored
(0028,0102) US 7 # 2, 1 HighBit
(0028,0103) US 0 # 2, 1 PixelRepresentation
(0028,1101) US 256\0\8 # 6, 3 RedPaletteColorLookupTableDescriptor
(0028,1102) US 256\0\8 # 6, 3 GreenPaletteColorLookupTableDescriptor
(0028,1103) US 256\0\8 # 6, 3 BluePaletteColorLookupTableDescriptor
(0028,1201) OW 0100\0302\0504\0706\0908\0b0a\0d0c\0f0e\1110\1312\1514\1716\1918... # 256, 1 RedPaletteColorLookupTableData
(0028,1202) OW 0100\0302\0504\0706\0908\0b0a\0d0c\0f0e\1110\1312\1514\1716\1918... # 256, 1 GreenPaletteColorLookupTableData
(0028,1203) OW 0100\0302\0504\0706\0908\0b0a\0d0c\0f0e\1110\1312\1514\1716\1918... # 256, 1 BluePaletteColorLookupTableData
(7fe0,0010) OW 2121\2121\2121\2121\2221\2221\2121\2122\2222\2221\2221\2121\2121... # 4096, 1 PixelData

As you can see, sample per pixel coming is 1 where as photo metric interpretation is PALETTE COLOR. Is it correct ?

I have one very basic question : Why dcmtk is compressing/decompressing all the pixel data tags ?

Should we compress / decompress Icon Image Sequence Pixel data tag or not ? ( or any other private sequence with pixel data tag)

Is it required to compress all the pixel data tags according to DICOM standards ?

If not, can i change following code here :

In dcdataset.cc file, while searching for DCM_PixelData tag:

while(search(DCM_PixelData, resultStack, ESM_afterStackTop, OFTrue).good() && l_error.good())

So, Can i change OfTrue to OfFalse in above statement.

while(search(DCM_PixelData, resultStack, ESM_afterStackTop, OFFalse).good() && l_error.good())

Any help will be highly appreciated.

Thanks,
Angad Nath

Post Reply

Who is online

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