jpeg LossLess Transfer Syntax + dcmpsprt

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
nicolas_dicom
Posts: 19
Joined: Fri, 2010-10-29, 21:48

jpeg LossLess Transfer Syntax + dcmpsprt

#1 Post by nicolas_dicom »

Hi all ,

I would like to know how to print (dcmpsprt.exe) a compressed dicom file..

e.g of Transfer Syntax UID

1.2.840.10008.1.2.4.70 :
JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]):
Default Transfer Syntax for Lossless JPEG Image Compression

or

1.2.840.10008.1.2.4.90
JPEG 2000 Image Compression (Lossless Only)/ Image Compression ?

.


Is there any option included on dcmpsprt.exe command ?



I get the next error when I try to prepare the print job

Code: Select all


ERROR: cannot change to unencapsulated representation for pixel data !
error: loading image file 'CR_4ce3fea5f2faca2b.dcm' failed.

that's due the file is a jpeg lossless dicom image
1.2.840.10008.1.2.4.70.

Regards,

Nicolas

Btw. Are the DCMTK tools compatible with 1.2.840.10008.1.2.4.90 /91 JPEG 2000 Image Compression (Lossless Only) ?

Michael Onken
DCMTK Developer
Posts: 2052
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

Hi,

you have to decompress the images first. Use the tool dcmdjpeg for that (for oldschool JPEG compressions), dcmdrle for RLE compression and dcmdjpls for JPEG-LS compression. Deflated (i.e. ZIP) compression is handled automatically by dcmdata (no need for explicit decompression).

For JPEG2000 you would need ourcommercial add-on package, DCMJP2K.

Best regards,
Michael

nicolas_dicom
Posts: 19
Joined: Fri, 2010-10-29, 21:48

#3 Post by nicolas_dicom »

Hi Michael,

yes, I saw this tool, (dcmdjpeg) moreover , Iam using it.....so, those kind of files cannot be used by dcmpsprt command directly.

So,First I have to know what kind of file is (1.2.840.10008.1.2.4.50 ....1.2.840.10008.1.2.4.70 ) (tag :0002-0010) and then I have to decide to apply or not the dcmdjpeg before to use dcmpsprt

Thanks!


Nicolas

Michael Onken
DCMTK Developer
Posts: 2052
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#4 Post by Michael Onken »

So,First I have to know what kind of file is (1.2.840.10008.1.2.4.50 ....1.2.840.10008.1.2.4.70 ) (tag :0002-0010) and then I have to decide to apply or not the dcmdjpeg before to use dcmpsprt
Exactly :)

Michael

Post Reply

Who is online

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