Ask Your Question
0

Interpretation of color parameter

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

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
1

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

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

Question Tools

1 follower

Stats

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

Seen: 123 times

Last updated: Oct 15 '16