Ask Your Question

Revision history [back]

Read docs?

fill in red :

Mat x(200,200,CV_8UC3,Scalar::all(0));
rectangle(x,Point(10,10), point(50,60),vec3b(0,0,200), cv::FILLED);

Read docs?

fill in red :

Mat x(200,200,CV_8UC3,Scalar::all(0));
rectangle(x,Point(10,10), point(50,60),vec3b(0,0,200), Point(50,60),Vec3b(0,0,200), cv::FILLED);