File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
modules/photoeffects/test Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ TEST(photoeffects_warmify, test)
1717{
1818 Mat image (100 , 100 , CV_8UC3);
1919 Mat dst;
20- Vec3b intensity_src;
21- Vec3b intensity_dst ;
20+
21+ warmify (image, dst, 30 ) ;
2222
2323 for (int i = 0 ; i < image.rows ; i++)
2424 {
2525 for (int j = 0 ; j < image.cols ; j++)
2626 {
2727 // blue_dst = blue_src
28- intensity_src = image.at <Vec3b>(i, j);
29- intensity_dst = dst.at <Vec3b>(i, j);
28+ Vec3b intensity_src = image.at <Vec3b>(i, j);
29+ Vec3b intensity_dst = dst.at <Vec3b>(i, j);
3030 EXPECT_LE (intensity_dst[0 ] - 1 , intensity_src[0 ]);
3131 EXPECT_GE (intensity_dst[0 ] + 1 , intensity_src[0 ]);
3232 }
@@ -51,6 +51,8 @@ TEST(photoeffects_warmify, regression)
5151 FAIL () << " Can't read " + expectedOutput + " image" ;
5252 }
5353
54+ warmify (image, dst, 30 );
55+
5456 Mat diff = abs (rightDst - dst);
5557 Mat mask = diff.reshape (1 ) > 1 ;
5658 EXPECT_EQ (0 , countNonZero (mask));
You can’t perform that action at this time.
0 commit comments