Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identify Compressed DICOM image by tag

Tags:

dicom

How to identify whether a dicom image is in compressed format ? And also want to know how to read compressed image pixel data ?

like image 411
ananth_adroit Avatar asked Jan 05 '12 11:01

ananth_adroit


2 Answers

You can use command line tool to dump this type of information, eg gdcminfo:

$ gdcminfo 012345.002.050.dcm  
MediaStorage is 1.2.840.10008.5.1.4.1.1.4 [MR Image Storage]
TransferSyntax is 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]
...

Pay attention that for the case of JPEG 2000 and JPEG-LS the transfer syntax itself is not sufficient to indicate whether or not the Pixel Data stream has been lossy or lossless compressed. This could be important for your organisation as lossy compression could impact professional interpretation.

Ref: http://gdcm.sourceforge.net/html/gdcminfo.html

like image 199
malat Avatar answered Oct 21 '22 20:10

malat


Encoding of the data set embedded in a Dicom file (or message) is specified through the transfer syntax UID tag (0002,0010). There are many types of compressed ones (JPEG, RLE, JPEG Lossless, JPEG 2000, ...)

For more info see section 10 of PS3.5.

As for reading the compressed image data, see the various DICOM libraries, it depends on the language you use of course.

like image 36
CharlesB Avatar answered Oct 21 '22 19:10

CharlesB