mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #25292 from kaingwade:features2d_parts_to_contrib
Features2d cleanup: Move several feature detectors and descriptors to opencv_contrib #25292 features2d cleanup: #24999 The PR moves KAZE, AKAZE, AgastFeatureDetector, BRISK and BOW to opencv_contrib/xfeatures2d. Related PR: opencv/opencv_contrib#3709
This commit is contained in:
@@ -424,14 +424,22 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
else if (features_type == "akaze")
|
||||
{
|
||||
finder = AKAZE::create();
|
||||
}
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
finder = xfeatures2d::AKAZE::create();
|
||||
#else
|
||||
cout << "OpenCV is built without opencv_contrib modules. AKAZE algorithm is not available!" << std::endl;
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
else if (features_type == "surf")
|
||||
{
|
||||
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(HAVE_OPENCV_NONFREE)
|
||||
finder = xfeatures2d::SURF::create();
|
||||
}
|
||||
#else
|
||||
cout << "OpenCV is built without NONFREE modules. SURF algorithm is not available!" << std::endl;
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
else if (features_type == "sift")
|
||||
{
|
||||
finder = SIFT::create();
|
||||
|
||||
Reference in New Issue
Block a user