Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Calc eucliadian distance between two single point ?

$
0
0
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? (That's pretty similary to what does descriptormatcher.match() with L2_NORM)

Viewing all articles
Browse latest Browse all 41027


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>