From d970a9159edcf863809ba2dab3488f2f4702e097 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 9 Oct 2012 18:56:39 +0400 Subject: [PATCH] Add sanity checks to nonfree module --- modules/nonfree/perf/perf_surf.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/nonfree/perf/perf_surf.cpp b/modules/nonfree/perf/perf_surf.cpp index 1122779..8b14356 100644 --- a/modules/nonfree/perf/perf_surf.cpp +++ b/modules/nonfree/perf/perf_surf.cpp @@ -26,6 +26,8 @@ PERF_TEST_P(surf, detect, testing::Values(SURF_IMAGES)) vector points; TEST_CYCLE() detector(frame, mask, points); + + SANITY_CHECK_KEYPOINTS(points); } PERF_TEST_P(surf, extract, testing::Values(SURF_IMAGES)) @@ -45,6 +47,8 @@ PERF_TEST_P(surf, extract, testing::Values(SURF_IMAGES)) detector(frame, mask, points); TEST_CYCLE() detector(frame, mask, points, descriptors, true); + + SANITY_CHECK(descriptors, 1e-4); } PERF_TEST_P(surf, full, testing::Values(SURF_IMAGES)) @@ -62,4 +66,7 @@ PERF_TEST_P(surf, full, testing::Values(SURF_IMAGES)) vector descriptors; TEST_CYCLE() detector(frame, mask, points, descriptors, false); + + SANITY_CHECK_KEYPOINTS(points); + SANITY_CHECK(descriptors, 1e-4); } -- 2.7.4