Skip to content

Commit

Permalink
Guard non-free usage in stitching as contrib can be built without it.
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed Feb 2, 2021
1 parent b08d67c commit 0016c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/stitching/test/test_matchers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

namespace opencv_test { namespace {

#ifdef HAVE_OPENCV_XFEATURES2D
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)

TEST(SurfFeaturesFinder, CanFindInROIs)
{
Expand Down Expand Up @@ -74,7 +74,7 @@ TEST(SurfFeaturesFinder, CanFindInROIs)
ASSERT_EQ(bad_count, 0);
}

#endif // HAVE_OPENCV_XFEATURES2D
#endif // HAVE_OPENCV_XFEATURES2D && OPENCV_ENABLE_NONFREE

TEST(ParallelFeaturesFinder, IsSameWithSerial)
{
Expand Down

0 comments on commit 0016c25

Please sign in to comment.