diff --git a/modules/stitching/src/stitcher.cpp b/modules/stitching/src/stitcher.cpp index e328d67ab9..adff5c1425 100644 --- a/modules/stitching/src/stitcher.cpp +++ b/modules/stitching/src/stitcher.cpp @@ -59,22 +59,14 @@ Stitcher Stitcher::createDefault(bool try_use_gpu) #ifdef HAVE_OPENCV_CUDALEGACY if (try_use_gpu && cuda::getCudaEnabledDeviceCount() > 0) { -#ifdef HAVE_OPENCV_XFEATURES2D - stitcher.setFeaturesFinder(makePtr()); -#else stitcher.setFeaturesFinder(makePtr()); -#endif stitcher.setWarper(makePtr()); stitcher.setSeamFinder(makePtr()); } else #endif { -#ifdef HAVE_OPENCV_XFEATURES2D - stitcher.setFeaturesFinder(makePtr()); -#else stitcher.setFeaturesFinder(makePtr()); -#endif stitcher.setWarper(makePtr()); stitcher.setSeamFinder(makePtr(detail::GraphCutSeamFinderBase::COST_COLOR)); }