1
0
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:
Maksim Shabunin
2017-03-13 13:17:12 +03:00
parent f1a198d192
commit f8807f18cd
65 changed files with 366 additions and 341 deletions

View File

@@ -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