Fix binary compatibility of opencv_features2d
This commit is contained in:
@@ -30,10 +30,13 @@ PERF_TEST_P(fast, detect, testing::Combine(
|
||||
|
||||
declare.in(frame);
|
||||
|
||||
FastFeatureDetector fd(20, true, type);
|
||||
Ptr<FeatureDetector> fd = Algorithm::create<FeatureDetector>("Feature2D.FASTX");
|
||||
fd->set("threshold", 20);
|
||||
fd->set("nonmaxSuppression", true);
|
||||
fd->set("type", type);
|
||||
vector<KeyPoint> points;
|
||||
|
||||
TEST_CYCLE() fd.detect(frame, points);
|
||||
TEST_CYCLE() fd->detect(frame, points);
|
||||
|
||||
SANITY_CHECK_KEYPOINTS(points);
|
||||
}
|
||||
|
Reference in New Issue
Block a user