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

Method SetMapParams

example/CarsCounting.h:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112 ///
113 bool SetMapParams(const std::string& mapfile, const std::vector<cv::Point_<T>>& mapGeoCorners)
114 {
115 m_map = cv::imread(mapfile);
116 m_mapGeoCorners.assign(std::begin(mapGeoCorners), std::end(mapGeoCorners));
117
118 if (!m_map.empty())
119 m_p2mParams.Init(m_mapGeoCorners, m_map.cols, m_map.rows);
120
121 return !m_map.empty();
122 }
123
124 ///
125 cv::Point Geo2Pix(const cv::Point_<T>& geo) const

Callers 1

ReadGeobindingsMethod · 0.80

Calls 4

beginFunction · 0.50
endFunction · 0.50
emptyMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected