Renove black regidon when a board less than the board size is used (Experiamental)
This commit is contained in:
@ -95,7 +95,7 @@ cv::Mat openImageYml(char* fileName)
|
||||
cv::FileStorage matf(fileName, cv::FileStorage::READ);
|
||||
matf["image"]>>image;
|
||||
|
||||
if(matf.isOpened() && (!image.data || image.type() != CV_32FC1))
|
||||
if(matf.isOpened() && !image.data)
|
||||
{
|
||||
Log(Log::WARN)<<fileName<<" dose not contain a valid image";
|
||||
matf.release();
|
||||
|
Reference in New Issue
Block a user