Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How fill circles on openCV C++

Tags:

Using openCV, how can I fill some circles found using the HoughCircles in C++? This Circles will be used to create a mask on a image. There is a better way to do this?

Thanks.

like image 658
Samuel Freitas Avatar asked Sep 19 '13 04:09

Samuel Freitas


Video Answer


1 Answers

You can pass thickness of the circle out line to CV_FILLED or -1 to fill the circle like

circle(img, Point(50,50),50, Scalar(255,255,255),CV_FILLED, 8,0);

See OpenCV Doc for more info.

like image 59
Haris Avatar answered Oct 13 '22 00:10

Haris