dont append extension when saving remapmap
This commit is contained in:
		
							parent
							
								
									07e0ea47f6
								
							
						
					
					
						commit
						451e452753
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
{
 | 
			
		||||
	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.release();
 | 
			
		||||
	Log(Log::INFO)<<"Unwrap maps saved to "<<fileName<<".mat";
 | 
			
		||||
	Log(Log::INFO)<<"Unwrap maps saved to "<<fileName;
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue