Ask Your Question
1

Images RGB and BGR

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

isaacenrique gravatar image

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

Greetings.

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
5

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
Login/Signup to Answer

Question Tools

Stats

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

Seen: 13,811 times

Last updated: Feb 27 '13