DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-09-23, 21:09

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed, 2013-06-19, 11:46 
Offline

Joined: Thu, 2010-02-18, 09:54
Posts: 112
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

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


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group