Ask Your Question

Images RGB and BGR

asked 2013-02-27 02:41:50 -0500

isaacenrique gravatar image

updated 2013-02-27 02:42:24 -0500


I'm working with cv::Mat and I have a question about how to know if a image (or the color space of an image) is RGB or BGR... Is there a library function to know this?

Thanks in advance for any responses and / or comments.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-02-27 02:55:30 -0500

Vladislav Vinogradov gravatar image

OpenCV uses BGR color space (imread, VideoCapture). So if you load image with OpenCV functions it will be BGR. But there is no function to check color space.

edit flag offensive delete link more

Question Tools


Asked: 2013-02-27 02:41:50 -0500

Seen: 20,617 times

Last updated: Feb 27 '13