fix curve loading

This commit is contained in:
uvos 2021-07-24 12:27:05 +02:00
parent b5107bfc5a
commit 55ef1ee471

View File

@ -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";