I have
Point2f a(10,10);
Point2f b(100,100);
I would like to calc the distance (Euclidean) between these two points. Instead to write the manual function:
float euclideanDist(Point& p, Point& q) {
Point diff = p - q;
return cv::sqrt(diff.x*diff.x + diff.y*diff.y);
}
Is there any OpenCV function?