随笔分类 -  c++

摘要:https://github.com/colmap/colmap/blob/ff8842e7d9e985bd0dd87169f61d5aaeb309ab32/src/colmap/sensor/models.h#L197 // Simple Pinhole camera model. // f, c 阅读全文
posted @ 2022-01-05 16:04 小小灰迪 阅读(4065) 评论(0) 推荐(1)
摘要:#include <pthread> 锁 #include <mutex> #include <thread> std::mutex my_lock; void test(){ std::lock_guard<std::mutex> lock(my_lock); } list队列 #include 阅读全文
posted @ 2021-11-06 11:06 小小灰迪 阅读(66) 评论(0) 推荐(0)
摘要:#include "cpptoml.h" 阅读全文
posted @ 2021-09-01 19:41 小小灰迪 阅读(322) 评论(0) 推荐(0)
摘要:linux // 创建、删除文件夹 void mkdir_output(const string &output_path){ if (access(output_path.c_str(), 0) == -1) { // mkdir(output_path.c_str(),S_IRUSR | S_I 阅读全文
posted @ 2021-09-01 10:53 小小灰迪 阅读(3822) 评论(0) 推荐(1)
摘要:1. sprintf_s:格式化输出字符串 char path_temp[512]; const char object_mask_path[512] = "%04d.png"; int track_index = 1; sprintf_s(path_temp, object_mask_path, 阅读全文
posted @ 2021-07-14 11:01 小小灰迪 阅读(66) 评论(0) 推荐(0)
摘要:获取文件名和去掉后缀的文件名 std::string path = relocal_frame.img_path_.substr(relocal_frame.img_path_.find_last_of("/") + 1); std::string name = path.substr(0, pat 阅读全文
posted @ 2021-05-11 22:14 小小灰迪 阅读(134) 评论(0) 推荐(0)
摘要:读写xml文件 opencv fs1 = cv2.FileStorage("./Date/gpsPoints.xml", cv2.FILE_STORAGE_READ) endGps_Node = fs1.getNode("gpsMiddle") endGps_lat = endGps_Node.ge 阅读全文
posted @ 2021-04-08 21:01 小小灰迪 阅读(282) 评论(0) 推荐(0)