Commit 0a543c55 authored by Alexander Alekhin's avatar Alexander Alekhin

test: fix Legacy_StereoGC.regression assertion

parent 19270eea
...@@ -532,7 +532,7 @@ int CV_StereoMatchingTest::processStereoMatchingResults( FileStorage& fs, int ca ...@@ -532,7 +532,7 @@ int CV_StereoMatchingTest::processStereoMatchingResults( FileStorage& fs, int ca
// rightDisp is not used in current test virsion // rightDisp is not used in current test virsion
int code = cvtest::TS::OK; int code = cvtest::TS::OK;
assert( fs.isOpened() ); assert( fs.isOpened() );
assert( trueLeftDisp.type() == CV_32FC1 && trueRightDisp.type() == CV_32FC1 ); assert( trueLeftDisp.type() == CV_32FC1 && (trueRightDisp.empty() || trueRightDisp.type() == CV_32FC1) );
assert( leftDisp.type() == CV_32FC1 && rightDisp.type() == CV_32FC1 ); assert( leftDisp.type() == CV_32FC1 && rightDisp.type() == CV_32FC1 );
// get masks for unknown ground truth disparity values // get masks for unknown ground truth disparity values
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment