From 608855a322b913e7352b7e76d69a1946d3e960b3 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Mon, 21 May 2012 08:47:57 +0000 Subject: [PATCH] include nonfree for a couple of f2d samples --- samples/cpp/bagofwords_classification.cpp | 3 +++ samples/cpp/descriptor_extractor_matcher.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/samples/cpp/bagofwords_classification.cpp b/samples/cpp/bagofwords_classification.cpp index 7ea03c6..a8f9a50 100644 --- a/samples/cpp/bagofwords_classification.cpp +++ b/samples/cpp/bagofwords_classification.cpp @@ -1,6 +1,7 @@ #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/features2d/features2d.hpp" +#include "opencv2/nonfree/nonfree.hpp" #include "opencv2/ml/ml.hpp" #include @@ -2515,6 +2516,8 @@ int main(int argc, char** argv) return -1; } + cv::initModule_nonfree(); + const string vocPath = argv[1], resPath = argv[2]; // Read or set default parameters diff --git a/samples/cpp/descriptor_extractor_matcher.cpp b/samples/cpp/descriptor_extractor_matcher.cpp index ce48220..cb4d2ff 100644 --- a/samples/cpp/descriptor_extractor_matcher.cpp +++ b/samples/cpp/descriptor_extractor_matcher.cpp @@ -2,6 +2,7 @@ #include "opencv2/calib3d/calib3d.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/features2d/features2d.hpp" +#include "opencv2/nonfree/nonfree.hpp" #include @@ -235,6 +236,9 @@ int main(int argc, char** argv) help(argv); return -1; } + + cv::initModule_nonfree(); + bool isWarpPerspective = argc == 7; double ransacReprojThreshold = -1; if( !isWarpPerspective ) -- 2.7.4