Hijacking such an old thread is usually seen as bad behavior, so I created a new thread.Given the thread, it would be nice to understand these questions?
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 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.
Sorry, but I don't understand your question.- How dcm2pnm is a good idea to change bits? Will the conversion cause loosing data that is important for dicom
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.- Do you have any function that works to convert also between format like bmp to png or any other?