convert from dicom (dcm) to jpeg

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
wchang615

convert from dicom (dcm) to jpeg

Post 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
wchang615

Re: convert from dicom (dcm) to jpeg

Post 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
wchang615

Re: convert from dicom (dcm) to jpeg

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert from dicom (dcm) to jpeg

Post 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
Post Reply