dont append extension when saving remapmap

This commit is contained in:
2021-06-11 00:02:14 +02:00
parent 07e0ea47f6
commit 451e452753

View File

@ -133,10 +133,10 @@ bool createRemapMap(const cv::Mat& image, RemapMap& out, const std::vector<Detec
bool saveRemapMap(const RemapMap& map, const std::string& fileName) bool saveRemapMap(const RemapMap& map, const std::string& fileName)
{ {
cv::FileStorage matf(fileName+".mat", cv::FileStorage::WRITE ); cv::FileStorage matf(fileName, cv::FileStorage::WRITE );
matf<<"xmat"<<map.xMat<<"ymat"<<map.yMat<<"origin"<<map.topLeftCoordinate; matf<<"xmat"<<map.xMat<<"ymat"<<map.yMat<<"origin"<<map.topLeftCoordinate;
matf.release(); matf.release();
Log(Log::INFO)<<"Unwrap maps saved to "<<fileName<<".mat"; Log(Log::INFO)<<"Unwrap maps saved to "<<fileName;
return true; return true;
} }