Ask Your Question

Interpretation of color parameter

asked 2016-10-15 12:37:42 -0500

MatsW gravatar image

I've tested a code sample which uses circle(), but what surprises is me that the RGB-color parameter passed with Scalar(0, 0, 255) is interpreted as RED. It turns out that the color parameter is interpreted as B,G,R which is backward.

Is this intentional?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-10-15 13:25:38 -0500

LBerger gravatar image

Opencv use BGR format and an explanation is given here ....and so many post about this

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-10-15 12:37:42 -0500

Seen: 49 times

Last updated: Oct 15 '16