Converting jpg to implicit little endian dicom

152 views
Skip to first unread message

DicomJpeg

unread,
Jan 24, 2021, 3:46:09 AM1/24/21
to dcm4che
Hello,

First I'd like to thank you for this amazing library! It really eases the process of working with dicoms.

I'm trying to convert a jpg file to a dicom and I'm using jpg2dcm tool for that.
The thing is the resulting dicom is in jpeg baseline transfer syntax, while I need the result to be in implicit vr little endian.

What I'm currently doing is converting the jpg to dicom and then convert the transfer syntax using dcm2dcm.

Is there a better way of doing this? Ideally I wouldn't need to create a temporary dicom file.

Thanks :)

DicomJpeg

unread,
Jan 24, 2021, 3:50:28 AM1/24/21
to dcm4che
Forgot to mention, I'm using dcm4che 5.22.6 (with imageio).

gunterze

unread,
Jan 24, 2021, 4:05:57 PM1/24/21
to dcm4che
No. jpg2dcm and dcm2dcm does not support writing to/reading from stdout/stdin, so you can't pipe them together.

Why you need to convert the encapsulated JPEG compressed DICOM image to uncompressed Implicit VR Little Endian Transfer Syntax?

DicomJpeg

unread,
Jan 25, 2021, 2:55:32 AM1/25/21
to dcm4che
It's a restriction I have from the workplace, unfortunately.
Reply all
Reply to author
Forward
0 new messages