double Point2PointDist(const cv::Point2f& a, const cv::Point2f& b)
{
double res = sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y, 2));
return res;
}
Opencv求两点间的距离
于 2021-01-27 11:11:46 首次发布
double Point2PointDist(const cv::Point2f& a, const cv::Point2f& b)
{
double res = sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y, 2));
return res;
}