MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / DistanceInMeters

Function DistanceInMeters

example/CarsCounting.h:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25///
26template<typename T>
27T 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
34template<class T>

Callers 1

DrawTrackMethod · 0.85

Calls 1

HaversineFunction · 0.85

Tested by

no test coverage detected