An example using the Hough circle detector
int main(int argc, char** argv)
{
const char* filename = argc >=2 ? argv[1] : "smarties.png";
printf(" Error opening image\n");
printf(" Program Arguments: [image_name -- default %s] \n", filename);
return EXIT_FAILURE;
}
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 EXIT_SUCCESS;
}