TAPI: stitching: blender: fix OpenCL path & adjust test condition

This commit is contained in:
Alexander Alekhin
2014-03-12 19:33:30 +04:00
committed by Andrey Pavlenko
parent e6cc1be7e8
commit 026b13b3db
2 changed files with 6 additions and 6 deletions

View File

@@ -73,6 +73,6 @@ TEST(MultiBandBlender, CanBlendTwoImages)
Mat result; result_s.convertTo(result, CV_8U);
Mat expected = imread(string(cvtest::TS::ptr()->get_data_path()) + "stitching/baboon_lena.png");
double rmsErr = cvtest::norm(expected, result, NORM_L2) / sqrt(double(expected.size().area()));
ASSERT_LT(rmsErr, 1e-3);
double psnr = cvtest::PSNR(expected, result);
EXPECT_GE(psnr, 50);
}