Conversion 12 bit grayscale dicom image to 16 bit grayscale PNG

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Conversion 12 bit grayscale dicom image to 16 bit grayscale PNG

#1 Post by J. Riesmeier »

Given the thread, it would be nice to understand these questions?
Hijacking such an old thread is usually seen as bad behavior, so I created a new thread.
- How do save a frame of bmp or png of 8/16/24/32 bits size formats? I see here that he used getOutputData but how did he save it after that.
The method getOutpuData() is used when you need the pixel data in rendered format in main memory. For exporting DICOM images to BMP or PNG files, there are specific writeXXX() methods in the DicomImage class.
- How dcm2pnm is a good idea to change bits? Will the conversion cause loosing data that is important for dicom
Sorry, but I don't understand your question.
- Do you have any function that works to convert also between format like bmp to png or any other?
No, the DCMTK is about the DICOM standard and not a general image format tool(kit). Have a look at other tools/toolkit, e.g. ImageMagick.

Post Reply

Who is online

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