Skip to content

Commit

Permalink
Merge pull request opencv#1852 from ilya-lavrenov:ocl_retina
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Pavlenko authored and OpenCV Buildbot committed Nov 22, 2013
2 parents c33cb94 + 8834d5e commit c1f59c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/bioinspired/test/test_retina_ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ TEST_P(Retina_OCL, Accuracy)
ocl_retina->getParvo(ocl_parvo);
ocl_retina->getMagno(ocl_magno);

EXPECT_LE(checkNear(gold_parvo, (Mat)ocl_parvo), 1.0);
EXPECT_LE(checkNear(gold_magno, (Mat)ocl_magno), 1.0);
int eps = colorMode ? 2 : 1;

EXPECT_LE(checkNear(gold_parvo, (Mat)ocl_parvo), eps);
EXPECT_LE(checkNear(gold_magno, (Mat)ocl_magno), eps);
}
}

INSTANTIATE_TEST_CASE_P(Contrib, Retina_OCL, testing::Combine(
testing::Values(false, true),
testing::Bool(),
testing::Values((int)cv::bioinspired::RETINA_COLOR_BAYER),
testing::Values(false/*,true*/),
testing::Values(1.0, 0.5),
Expand Down

0 comments on commit c1f59c4

Please sign in to comment.