mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fixed Android build
This commit is contained in:
@@ -18,7 +18,7 @@ using std::tr1::get;
|
||||
typedef TestBaseWithParam<String> stitch;
|
||||
typedef TestBaseWithParam<String> match;
|
||||
|
||||
#if HAVE_OPENCV_NONFREE
|
||||
#ifdef HAVE_OPENCV_NONFREE
|
||||
#define TEST_DETECTORS testing::Values("surf", "orb")
|
||||
#else
|
||||
#define TEST_DETECTORS testing::Values<String>("orb")
|
||||
|
||||
@@ -61,7 +61,7 @@ Stitcher Stitcher::createDefault(bool try_use_gpu)
|
||||
#ifdef HAVE_OPENCV_GPU
|
||||
if (try_use_gpu && gpu::getCudaEnabledDeviceCount() > 0)
|
||||
{
|
||||
#if HAVE_OPENCV_NONFREE
|
||||
#ifdef HAVE_OPENCV_NONFREE
|
||||
stitcher.setFeaturesFinder(new detail::SurfFeaturesFinderGpu());
|
||||
#else
|
||||
stitcher.setFeaturesFinder(new detail::OrbFeaturesFinder());
|
||||
@@ -72,7 +72,7 @@ Stitcher Stitcher::createDefault(bool try_use_gpu)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#if HAVE_OPENCV_NONFREE
|
||||
#ifdef HAVE_OPENCV_NONFREE
|
||||
stitcher.setFeaturesFinder(new detail::SurfFeaturesFinder());
|
||||
#else
|
||||
stitcher.setFeaturesFinder(new detail::OrbFeaturesFinder());
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include "test_precomp.hpp"
|
||||
#include "opencv2/opencv_modules.hpp"
|
||||
|
||||
#if HAVE_OPENCV_NONFREE
|
||||
#ifdef HAVE_OPENCV_NONFREE
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
@@ -57,7 +57,7 @@ TEST(SurfFeaturesFinder, CanFindInROIs)
|
||||
rois.push_back(Rect(img.cols / 2, img.rows / 2, img.cols - img.cols / 2, img.rows - img.rows / 2));
|
||||
detail::ImageFeatures roi_features;
|
||||
(*finder)(img, roi_features, rois);
|
||||
|
||||
|
||||
int tl_rect_count = 0, br_rect_count = 0, bad_count = 0;
|
||||
for (size_t i = 0; i < roi_features.keypoints.size(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user