mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 15:04:01 +08:00
Merge pull request #19488 from asmorkalov:as/nonfree_check
This commit is contained in:
commit
4f39f8a8d0
@ -19,7 +19,7 @@ namespace ocl {
|
||||
|
||||
typedef TestBaseWithParam<string> stitch;
|
||||
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
|
||||
#define TEST_DETECTORS testing::Values("surf", "orb", "akaze")
|
||||
#else
|
||||
#define TEST_DETECTORS testing::Values("orb", "akaze")
|
||||
|
@ -8,7 +8,7 @@ using namespace perf;
|
||||
|
||||
typedef TestBaseWithParam<tuple<string, string> > bundleAdjuster;
|
||||
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
|
||||
#define TEST_DETECTORS testing::Values("surf", "orb")
|
||||
#else
|
||||
#define TEST_DETECTORS testing::Values<string>("orb")
|
||||
|
@ -17,7 +17,7 @@ typedef TestBaseWithParam<matchVector_t> matchVector;
|
||||
#define ORB_MATCH_CONFIDENCE 0.3f
|
||||
#define WORK_MEGAPIX 0.6
|
||||
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
|
||||
#define TEST_DETECTORS testing::Values("surf", "orb")
|
||||
#else
|
||||
#define TEST_DETECTORS testing::Values<string>("orb")
|
||||
|
@ -11,8 +11,10 @@ static inline Ptr<detail::FeaturesFinder> getFeatureFinder(const std::string& na
|
||||
{
|
||||
if (name == "orb")
|
||||
return makePtr<detail::OrbFeaturesFinder>();
|
||||
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
|
||||
else if (name == "surf")
|
||||
return makePtr<detail::SurfFeaturesFinder>();
|
||||
#endif
|
||||
else if (name == "akaze")
|
||||
return makePtr<detail::AKAZEFeaturesFinder>();
|
||||
else
|
||||
|
@ -16,7 +16,7 @@ typedef TestBaseWithParam<string> stitch;
|
||||
typedef TestBaseWithParam<int> stitchExposureCompensation;
|
||||
typedef TestBaseWithParam<tuple<string, string> > stitchDatasets;
|
||||
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
|
||||
#define TEST_DETECTORS testing::Values("surf", "orb", "akaze")
|
||||
#else
|
||||
#define TEST_DETECTORS testing::Values("orb", "akaze")
|
||||
|
Loading…
Reference in New Issue
Block a user