fix curve loading
This commit is contained in:
parent
b5107bfc5a
commit
55ef1ee471
@ -282,7 +282,7 @@ int perfromOperation(int operation, char** fileNames, const Config& config)
|
||||
|
||||
cv::FileStorage fs(config.curve, cv::FileStorage::READ);
|
||||
cv::Mat curve;
|
||||
fs["curve"]>>curve;
|
||||
fs["cal"]>>curve;
|
||||
if(!curve.data || curve.type() != CV_32FC1 || curve.rows != 2 || curve.cols < 3)
|
||||
{
|
||||
Log(Log::INFO)<<"invalid curve";
|
||||
|
Loading…
x
Reference in New Issue
Block a user