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