mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-21 06:11:09 +08:00
Reduced modules dependencies:
- made some of dependencies explicit - removed dependencies to highgui and some other modules where possible - modified some samples to build without modules
This commit is contained in:
@@ -39,15 +39,16 @@
|
||||
//
|
||||
//M*/
|
||||
|
||||
#include <opencv2/line_descriptor.hpp>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef HAVE_OPENCV_FEATURES2D
|
||||
|
||||
#include <opencv2/line_descriptor.hpp>
|
||||
#include "opencv2/core/utility.hpp"
|
||||
#include <opencv2/imgproc.hpp>
|
||||
#include <opencv2/features2d.hpp>
|
||||
#include <opencv2/highgui.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#define MATCHES_DIST_THRESHOLD 25
|
||||
|
||||
using namespace cv;
|
||||
@@ -207,3 +208,12 @@ int main( int argc, char** argv )
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cerr << "OpenCV was built without features2d module" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // HAVE_OPENCV_FEATURES2D
|
||||
|
Reference in New Issue
Block a user