If I had an empty circle or a triangle how I can fill this circle or triangle with a black color ?? by using OpenCV
well, if it's circle , you can fill it by any color just by setting the thickness on -1 , here is an example (it draws a black circle) :
cvCircle(box,cvPoint(300,200),100,CV_RGB(0,0,0),-1,3,0);
if it is any other polygon, you can use "cvFillPoly()" function , take a look @ this page :
http://opencv.itseez.com/doc/tutorials/core/basic_geometric_drawing/basic_geometric_drawing.html
Last edited on