1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Extended set of existing performance test to OpenVX HAL suitable execution modes

This commit is contained in:
Vitaly Tuzov
2017-04-14 13:35:07 +03:00
parent 41d55c5095
commit 2492c299f3
7 changed files with 313 additions and 0 deletions
+23
View File
@@ -38,3 +38,26 @@ PERF_TEST_P(fast, detect, testing::Combine(
SANITY_CHECK_KEYPOINTS(points);
}
PERF_TEST_P(fast, detect_ovx, testing::Combine(
testing::Values(FAST_IMAGES),
FastType::all()
))
{
string filename = getDataPath(get<0>(GetParam()));
int type = get<1>(GetParam());
Mat frame = imread(filename, IMREAD_GRAYSCALE);
if (frame.empty())
FAIL() << "Unable to load source image " << filename;
declare.in(frame);
Ptr<FeatureDetector> fd = FastFeatureDetector::create(20, false, type);
ASSERT_FALSE(fd.empty());
vector<KeyPoint> points;
TEST_CYCLE() fd->detect(frame, points);
SANITY_CHECK_KEYPOINTS(points);
}