| 25 | /// |
| 26 | template<typename T> |
| 27 | T DistanceInMeters(const cv::Point_<T>& from, const cv::Point_<T>& to) |
| 28 | { |
| 29 | constexpr T EarthRadius = static_cast<T>(EARTH_RADIUS_IN_METERS); |
| 30 | return EarthRadius * Haversine(from, to); |
| 31 | } |
| 32 | |
| 33 | // Fix cv::getPerspectiveTransform for double |
| 34 | template<class T> |