Page 1 of 1

DICOM convertion getting grayscale

Posted: 2011-10-19T10:00:17-07:00
by rzamana
I'm using the ImageMagick 6.7.3-1

Code: Select all

$ convert --version
Version: ImageMagick 6.7.3-1 2011-10-19 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL   
When I try to convert a DICOM file, the converted file is getting all gray.

This are the DCM files that I'm using

And this is one converted image

Re: DICOM convertion getting grayscale

Posted: 2011-10-19T10:07:05-07:00
by fmw42
Your input and output images look the same using IM display. Your viewer is probably stretching it automatically. Try auto-level to stretch the dynamic range before the output.

convert brain_001.dcm -auto-level brain_001.jpg


The above works for me on IM 6.7.3.1 Q16 Mac OSX Tiger

Re: DICOM convertion getting grayscale

Posted: 2011-10-19T10:10:19-07:00
by rzamana
Thanks fmw42.

This fixed my problem.