摘要: 1、GPS坐标系(WGS-84坐标系) ECEF坐标系用在GPS中,就是WGS-84坐标系。 ECEF坐标系与地球固联,且随着地球转动。图中O即为坐标原点,位置在地球质心。X轴通过格林尼治线和赤道线的交点,正方向为原点指向交点方向。Z轴通过原点指向北极。Y轴与X、Z轴构成右手坐标系。 GPS坐标系也 阅读全文
posted @ 2021-09-03 11:07 开锁球 阅读(1587) 评论(0) 推荐(0)
摘要: 有需要快速查找的数时可以用map std::map<std::string, cv::Point3d> all_gps_data; std::map<std::string, cv::Point3d>::iterator iter_ = all_gps_data.find(image_name); 阅读全文
posted @ 2021-09-03 10:38 开锁球 阅读(244) 评论(0) 推荐(0)
摘要: pair 的用法 std::pair主要的作用是将两个数据组合成一个数据,两个数据可以是同一类型或者不同类型。C++标准程序库中凡是“必须返回两个值”的函数, 也都会利用pair对象。class pair可以将两个值视为一个单元。容器类别map和multimap就是使用pairs来管理其健值/实值( 阅读全文
posted @ 2021-09-03 10:29 开锁球 阅读(269) 评论(0) 推荐(0)
摘要: void Load_GPS(const std::string gps_path, std::map<std::string, cv::Point3d> &all_gps_data) { std::ifstream ifs; ifs.open(gps_path); if (!ifs.is_open( 阅读全文
posted @ 2021-09-03 10:24 开锁球 阅读(106) 评论(0) 推荐(0)
摘要: throw表达式(throw expression):异常检测部分使用throw表达式来表示它遇到了无法处理的问题。throw引发(raise)异常。throw表达式包含关键字throw和紧随其后的一个表达式,其中表达式的类型就是抛出的异常类型。throw表达式后面通常紧跟一个分号,从而构成一条表达 阅读全文
posted @ 2021-09-03 10:22 开锁球 阅读(1128) 评论(0) 推荐(0)
摘要: 知识点 1 std::vector<std::string> 作为返回参数 void GetConfigState(std::vector<std::string>&vtTemp) 2 对于std::vector<std::string>取值操作 std::vector<std::string>:: 阅读全文
posted @ 2021-09-03 10:18 开锁球 阅读(2303) 评论(0) 推荐(0)
摘要: void GetFiles(const std::string& img_dir_path,std::vector<std::string> &img_file_paths) { DIR* dir; if ((dir = opendir(img_dir_path.c_str())) == nullp 阅读全文
posted @ 2021-09-03 10:07 开锁球 阅读(3920) 评论(0) 推荐(1)
摘要: 使用时在cmake中添加 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") 阅读全文
posted @ 2021-09-03 09:55 开锁球 阅读(30) 评论(0) 推荐(0)