Image Processing 32 - Circle with Minimum Area

Finds the smallest area circle containing a 2D point set.

void cv::minEnclosingCircle(InputArray points,
                        Point2f &center,
                        float &radius
                        )

This function uses an iterative algorithm to find the smallest enclosing circle of a 2D point set.

points : input vector of 2D points, stored in std::vector<> or Mat

center : Output the center of the circle.

radius : The radius of the output circle.

//最小圆
void DlgImageProcessing::on_btnMinEnclosingCircle_cl

Guess you like

Origin blog.csdn.net/u013480226/article/details/123816727