MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / distance

Function distance

jni/venus/opencv_utility.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48float distance(const cv::Point2f& pt0, const cv::Point2f& pt1)
49{
50// return std::hypot(pt0.x - pt1.x, pt0.y - pt1.y);
51 float dx = pt0.x - pt1.x;
52 float dy = pt0.y - pt1.y;
53 return std::sqrt(dx*dx + dy*dy);
54}
55
56void inset(cv::Rect& rect, int width)
57{

Calls

no outgoing calls

Tested by

no test coverage detected