An example using the Hough circle detector
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
int main(int argc, char** argv)
{
const char* filename = argc >=2 ? argv[1] : "../data/smarties.png";
printf(" Error opening image\n");
printf(" Program Arguments: [image_name -- default %s] \n", filename);
return -1;
}
vector<Vec3f> circles;
100, 30, 1, 30
);
for( size_t i = 0; i < circles.size(); i++ )
{
int radius = c[2];
}
imshow(
"detected circles", src);
return 0;
}