Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does imwirte function write an image in RGB order?

Hi, I'm studying openCV and I have a simple question. I read a RGB image and I notice that openCV store it as a Mat in BGR oder. I wanna know whether the image file is in RGB order or BGR order, if I save the mat as a png file using imwrite.