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
How to convert a dicom file to a bitmap file
Moderator: Moderator Team
-
- Posts: 70
- Joined: Thu, 2007-08-30, 02:01
-
- OFFIS DICOM Team
- Posts: 1437
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
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.
-
- Posts: 70
- Joined: Thu, 2007-08-30, 02:01
Get the Correct Result
Hi Macro
Do as you suggested,I got the correct image .Thanks.
Do as you suggested,I got the correct image .Thanks.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest