| 46 | } |
| 47 | |
| 48 | float 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 | |
| 56 | void inset(cv::Rect& rect, int width) |
| 57 | { |
no outgoing calls
no test coverage detected