Page 1 of 1

convert from dicom (dcm) to jpeg

Posted: 2009-03-25T13:40:19-07:00
by wchang615
Dear All,

For some reasons that when I convert a dicom (.dcm) file to .jpg, I don't see the picture except showing a blank white picture. Is there a set of proper switches that I need to use?

Any helps would be greatly appreciated.

Best,

--Wo

Re: convert from dicom (dcm) to jpeg

Posted: 2009-03-25T19:17:38-07:00
by wchang615
FYI:
Seems like the later version (6.5.0) has fixed the dicom problem.
I can now convert from dicom to jpeg and see the picture.

Best,

--Wo

Re: convert from dicom (dcm) to jpeg

Posted: 2009-03-26T13:48:22-07:00
by wchang615
Dear All,

Can somebody confirm that ImageMagick still only supports depth 8 (as default) in jpeg?
Is there any way to supports 12, 16, or even 24?

BTE: if I want to use jpeg lossless, how can I do that?

Best,

--Wo

Re: convert from dicom (dcm) to jpeg

Posted: 2009-03-26T14:41:50-07:00
by fmw42
wchang615 wrote:Dear All,

Can somebody confirm that ImageMagick still only supports depth 8 (as default) in jpeg?
Is there any way to supports 12, 16, or even 24?

BTE: if I want to use jpeg lossless, how can I do that?

Best,

--Wo

What is your IM environment? Is it Q8 or Q16? If the latter, you should get 16-bits per channel. Use -depth 8 to force to 8-bits per channel.

See http://www.imagemagick.org/Usage/formats/#jpg

See -quality 100 and -compress lossless in the above