Updated with comments of speclad
authorStevenPuttemans <steven.puttemans@lessius.eu>
Fri, 30 Aug 2013 10:50:06 +0000 (12:50 +0200)
committerStevenPuttemans <steven.puttemans@lessius.eu>
Fri, 30 Aug 2013 10:50:06 +0000 (12:50 +0200)
modules/contrib/CMakeLists.txt
modules/contrib/src/featuretracker.cpp

index 26af1e3..f402016 100644 (file)
@@ -1 +1 @@
-ocv_define_module(contrib opencv_imgproc opencv_calib3d opencv_features2d opencv_ml opencv_video opencv_objdetect opencv_nonfree OPTIONAL opencv_highgui)
+ocv_define_module(contrib opencv_imgproc opencv_calib3d opencv_features2d opencv_ml opencv_video opencv_objdetect OPTIONAL opencv_highgui opencv_nonfree)
index b8d40de..902b6ae 100644 (file)
 #include "opencv2/calib3d/calib3d.hpp"
 #include "opencv2/contrib/hybridtracker.hpp"
 
+#ifdef HAVE_OPENCV_NONFREE
+#include "opencv2/nonfree/nonfree.hpp"
+
+static bool makeUseOfNonfree = initModule_nonfree();
+#endif
+
 using namespace cv;
 
 CvFeatureTracker::CvFeatureTracker(CvFeatureTrackerParams _params) :