Commit 608855a3 authored by Maria Dimashova's avatar Maria Dimashova

include nonfree for a couple of f2d samples

parent decd6c0f
#include "opencv2/highgui/highgui.hpp" #include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp" #include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/ml/ml.hpp" #include "opencv2/ml/ml.hpp"
#include <fstream> #include <fstream>
...@@ -2515,6 +2516,8 @@ int main(int argc, char** argv) ...@@ -2515,6 +2516,8 @@ int main(int argc, char** argv)
return -1; return -1;
} }
cv::initModule_nonfree();
const string vocPath = argv[1], resPath = argv[2]; const string vocPath = argv[1], resPath = argv[2];
// Read or set default parameters // Read or set default parameters
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include "opencv2/calib3d/calib3d.hpp" #include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp" #include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include <iostream> #include <iostream>
...@@ -235,6 +236,9 @@ int main(int argc, char** argv) ...@@ -235,6 +236,9 @@ int main(int argc, char** argv)
help(argv); help(argv);
return -1; return -1;
} }
cv::initModule_nonfree();
bool isWarpPerspective = argc == 7; bool isWarpPerspective = argc == 7;
double ransacReprojThreshold = -1; double ransacReprojThreshold = -1;
if( !isWarpPerspective ) if( !isWarpPerspective )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment