@@ -23,14 +23,6 @@ TEST(photoeffects_fadeColor, invalid_argument)
2323 EXPECT_ERROR (CV_StsAssert, fadeColor (src, dst, Point (5 ,5 ), Point (5 ,5 )));
2424}
2525
26- TEST (photoeffects_fadeColor, test) {
27- Mat imageWithOneChannel (100 , 200 , CV_8UC1);
28- Mat imageWithThreeChannel (100 , 200 , CV_8UC3);
29- Mat dst;
30- EXPECT_EQ (0 , fadeColor (imageWithOneChannel, dst, Point (5 ,5 ), Point (5 ,8 )));
31- EXPECT_EQ (0 , fadeColor (imageWithThreeChannel, dst, Point (5 ,5 ), Point (5 ,8 )));
32- }
33-
3426TEST (photoeffects_fadeColor, regression)
3527{
3628 string input = cvtest::TS::ptr ()->get_data_path () + " photoeffects/fadeColor_test.png" ;
@@ -45,7 +37,7 @@ TEST(photoeffects_fadeColor, regression)
4537 if (rightDst.empty ())
4638 FAIL () << " Can't read " + expectedOutput + " image" ;
4739
48- EXPECT_EQ ( 0 , fadeColor (image, dst, Point (100 , 100 ), Point (250 , 250 ) ));
40+ fadeColor (image, dst, Point (100 , 100 ), Point (250 , 250 ));
4941
5042 Mat diff = abs (rightDst - dst);
5143 Mat mask = diff.reshape (1 ) > 1 ;
0 commit comments