enabled some tests that failed before OCL_TEST_CYCLE*() macroses were defined and for some tests was disabled SANITY_CHECK, because plain and ocl results must not be completely equal

This commit is contained in:
ilya-lavrenov
2013-08-28 11:25:54 +04:00
parent 3c86aa4ae1
commit a6084d2970
5 changed files with 48 additions and 55 deletions

View File

@@ -49,7 +49,7 @@ using namespace perf;
///////////// Canny ////////////////////////
PERF_TEST(CannyFixture, DISABLED_Canny) // TODO difference between implmentations
PERF_TEST(CannyFixture, Canny)
{
Mat img = imread(getDataPath("gpu/stereobm/aloe-L.png"), cv::IMREAD_GRAYSCALE),
edges(img.size(), CV_8UC1);
@@ -63,15 +63,14 @@ PERF_TEST(CannyFixture, DISABLED_Canny) // TODO difference between implmentation
OCL_TEST_CYCLE() ocl::Canny(oclImg, oclEdges, 50.0, 100.0);
oclEdges.download(edges);
SANITY_CHECK(edges);
}
else if (RUN_PLAIN_IMPL)
{
TEST_CYCLE() Canny(img, edges, 50.0, 100.0);
SANITY_CHECK(edges);
}
else
OCL_PERF_ELSE
int value = 0;
SANITY_CHECK(value);
}