change RGB ordering to BGR in Dicom image

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
snie
Posts: 11
Joined: Tue, 2007-01-30, 20:50

change RGB ordering to BGR in Dicom image

#1 Post by snie »

Does anyone know how to change the dicom image pixel data format from RGB ordering to BGR and save the image to a file?

Thanks,

David
________
New Jersey Medical Marijuana Dispensary
________
Honda nsr500v history
Last edited by snie on Thu, 2011-02-17, 21:48, edited 2 times in total.

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

#2 Post by Marco Eichelberg »

The question is what you really want to do. Storing data in a specific file format, or storing raw data (and, if so, why in BGR order)? Class DicomImage will provide you with an API to access pre-processed RGB data, and converting that into BGR order should be rather trivial to implement.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest