How to get the radius of the circle with the following code?
Thank you in advance.
Code: Select all
Gray cannyThreshold = Gray(150);
Gray circleAccumulatorThreshold = Gray(20);
array<CircleF>^ circles = frame_temp->HoughCircles(cannyThreshold, circleAccumulatorThreshold, 3, 400, 1, 100)[0]; //Get the circles from the first channel
//drawing circles in the frame
for each (CircleF circle in circles){
frame->Draw(circle, Bgr(Color::Yellow), 2);
}