Page 1 of 1

Wrong conversion of dicom-files

Posted: 2016-11-18T07:51:27-07:00
by Lyuba
ImageMagick
DICOM-files (grayscale, 16 bits) are identified as 8-bits:
identify test.dcm
test.dcm DCM 512x512 512x512+0+0 8-bit sRGB 526KB 0.000u 0:00.000

and convert gives wrong picture for such files:
convert test.dcm test.jpeg
additional parameters don't help:
convert -depth 16 -type grayscale test.dcm test.jpeg

convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-06-01
OS: Ubuntu 16.04, imagemagick 8:6.8.9.9-7ubuntu5.1