How to convert a dicom file from RGB format into MONOCHROME2?
Moderator: Moderator Team
-
- Posts: 8
- Joined: Mon, 2011-08-08, 09:53
How to convert a dicom file from RGB format into MONOCHROME2?
Hi ~ I need to convert DICOM files from RGB format into MONOCHROME2, I tried to use "dcmcjpeg + cm + pl sour.dcm dest.dcm", but this will be converted to jpeg file format is there another way? thank you
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
dcmscale shows how to use the DCMTK to read a DICOM image file, transform the pixel data with the DicomImage Class and write a new DICOM image file. The conversion from color to monochrome can be achieved with DicomImage::createMonochromeImage().
Re: How to convert a dicom file from RGB format into MONOCHROME2?
I have a multi-frame image of RGB format.
Does DicomImage::createMonochromeImage() convert all the frames from RGB to MONOCHROME2?
Does DicomImage::createMonochromeImage() convert all the frames from RGB to MONOCHROME2?
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to convert a dicom file from RGB format into MONOCHROME2?
Yes, if all frames are actually selected for being loaded/processed (see DicomImage constructor).Does DicomImage::createMonochromeImage() convert all the frames from RGB to MONOCHROME2?
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest