dont append extension when saving remapmap
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user