JPG to DICOM

255 views
Skip to first unread message

harithacha...@gmail.com

unread,
Apr 26, 2021, 2:02:06 AM4/26/21
to dcm4che
Hi,

 While converting JPG to DICOM , instead of using the transfer syntax JPEG Baseline ,
is it possible to create DICOM file with transfer syntax  Explicit VR Little Endian.

Can someone please help me regarding this query?

Thanks,
Haritha C Mouli

Gunter Zeilinger

unread,
Apr 26, 2021, 3:23:21 AM4/26/21
to dcm4che
jpg2dcm embeds the given compressed images/video verbatim into a DICOM file, so the Transfer Syntax of the resulting DICOM file always corresponds to the codec of the compressed image/video.
You may use dcm2dcm to decompress the resulting DICOM file to a DICOM file with Transfer Syntax Explicit VR Little Endian.

harithacha...@gmail.com

unread,
Apr 26, 2021, 3:50:59 AM4/26/21
to dcm4che
Yes , i tried that as well, on converting it to  Explicit VR Little Endian quality of the image is very very bad, infact a colleague said this looks like a corrupted dicom image.

Any suggestions as to what can be done in such situation?

Gunter Zeilinger

unread,
Apr 26, 2021, 4:08:59 AM4/26/21
to dcm4che
There is no loss on quality on decompression!
See attached src.jpg and unc.jpg, created by

jpg2dcm src.jpg src.dcm
dcm2dcm src.dcm unc.dcm
dcm2jpg unc.dcm unc.jpg
src.jpg
unc.jpg

Mattia

unread,
Dec 20, 2021, 8:45:11 AM12/20/21
to dcm4che
Hello,  The size of the file increase after running dcm2dcm src.dcm unc.dcm. The .jpg file and the generated dcm are 100KB but after converting the transfer syntax to Explicit VR Little Endian the file size is 6MB. Why is this happening? Is it possible to have same file size but with transfer syntax Explicit VR Little Endian. dcm2jpg unc.dcm unc.jpg return a 100kb .jpg. image from the 6MB dcm

Thanks
Reply all
Reply to author
Forward
0 new messages