随笔分类 - c++
摘要:https://github.com/colmap/colmap/blob/ff8842e7d9e985bd0dd87169f61d5aaeb309ab32/src/colmap/sensor/models.h#L197 // Simple Pinhole camera model. // f, c
阅读全文
摘要:#include <pthread> 锁 #include <mutex> #include <thread> std::mutex my_lock; void test(){ std::lock_guard<std::mutex> lock(my_lock); } list队列 #include
阅读全文
摘要: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
阅读全文
摘要: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,
阅读全文
摘要:获取文件名和去掉后缀的文件名 std::string path = relocal_frame.img_path_.substr(relocal_frame.img_path_.find_last_of("/") + 1); std::string name = path.substr(0, pat
阅读全文
摘要:读写xml文件 opencv fs1 = cv2.FileStorage("./Date/gpsPoints.xml", cv2.FILE_STORAGE_READ) endGps_Node = fs1.getNode("gpsMiddle") endGps_lat = endGps_Node.ge
阅读全文
浙公网安备 33010602011771号