How to convert a dicom file to a bitmap file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

How to convert a dicom file to a bitmap file

#1 Post by xfjsuperking »

Hello everyone:
I want to convert a dicom file to a bitmap file with dcm2pnm tool .But the coverted bitmap file is black ,no image can be seen .here is how i use this tool
dcm2pnm +ob 1.dcm 1.bmp
Thanks in advance

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

I would guess that your original image is monochrome and is using more than 8 bits/pixel. In that case the conversion implies a reduction of bit depth from (say) 16 to 8 bits/pixel, and there are various command line options in dcm2pnm that allow you to influence that conversion. I would start with --min-max-window and check the result.

xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

Get the Correct Result

#3 Post by xfjsuperking »

Hi Macro
Do as you suggested,I got the correct image .Thanks.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest