29 int32_t minX, minY,
maxX, maxY;
59 static bool saveMap(
WAIMap* waiMap,
62 std::string imgDir =
"",
65 static bool saveMapRaw(
WAIMap* waiMap,
68 std::string imgDir =
"");
70 static bool saveMapBinary(
WAIMap* waiMap,
73 std::string imgDir =
"",
76 static bool loadMap(
WAIMap* waiMap,
83 static bool loadMapBinary(
WAIMap* waiMap,
90 static cv::Mat convertToCVMat(
const SLMat4f slMat);
91 static SLMat4f convertToSLMat(
const cv::Mat& cvMat);
92 static std::vector<uint8_t> convertCVMatToVector(
const cv::Mat& mat);
93 static void saveKeyFrameVideoMatching(std::vector<int>& keyFrameVideoMatching, std::vector<std::string> vidname,
const std::string& mapDir,
const std::string outputKFMatchingFile);
94 static void loadKeyFrameVideoMatching(std::vector<int>& keyFrameVideoMatching, std::vector<std::string>& vidname,
const std::string& mapDir,
const std::string outputKFMatchingFile);
97 static void writeVectorToBinaryFile(FILE* f,
const std::vector<T> vec);
99 static std::vector<T> loadVectorFromBinaryStream(uint8_t** data,
int count);
100 static void writeCVMatToBinaryFile(FILE* f,
const cv::Mat& mat);
101 static cv::Mat loadCVMatFromBinaryStream(uint8_t** data,
int rows,
int cols,
int type);
SLNode represents a node in a hierarchical scene graph.