| 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 |
no test coverage detected