Guard non-free usage in stitching as contrib can be built without it.

This commit is contained in:
Alexander Smorkalov 2021-02-02 13:24:59 +03:00
parent b08d67c4e1
commit 0016c25b58

View File

@ -44,7 +44,7 @@
namespace opencv_test { namespace {
#ifdef HAVE_OPENCV_XFEATURES2D
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
TEST(SurfFeaturesFinder, CanFindInROIs)
{
@ -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)
{