Not not test stitiching with SURF, if NONFREE is disabled

pull/19488/head
Alexander Smorkalov 4 years ago
parent 0be18f5cb0
commit 3b9aebee11
  1. 2
      modules/stitching/perf/opencl/perf_stitch.cpp
  2. 2
      modules/stitching/perf/perf_estimators.cpp
  3. 2
      modules/stitching/perf/perf_matchers.cpp
  4. 2
      modules/stitching/perf/perf_precomp.hpp
  5. 2
      modules/stitching/perf/perf_stich.cpp

@ -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…
Cancel
Save