mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
adapted all nonfree header inclusion since it doesn't exist anymore as a module
This commit is contained in:
@@ -59,7 +59,7 @@ Stitcher Stitcher::createDefault(bool try_use_gpu)
|
||||
#ifdef HAVE_OPENCV_CUDA
|
||||
if (try_use_gpu && cuda::getCudaEnabledDeviceCount() > 0)
|
||||
{
|
||||
#ifdef HAVE_OPENCV_NONFREE
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
stitcher.setFeaturesFinder(makePtr<detail::SurfFeaturesFinderGpu>());
|
||||
#else
|
||||
stitcher.setFeaturesFinder(makePtr<detail::OrbFeaturesFinder>());
|
||||
@@ -70,7 +70,7 @@ Stitcher Stitcher::createDefault(bool try_use_gpu)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#ifdef HAVE_OPENCV_NONFREE
|
||||
#ifdef HAVE_OPENCV_XFEATURES2D
|
||||
stitcher.setFeaturesFinder(makePtr<detail::SurfFeaturesFinder>());
|
||||
#else
|
||||
stitcher.setFeaturesFinder(makePtr<detail::OrbFeaturesFinder>());
|
||||
|
||||
Reference in New Issue
Block a user