Modify default setting, using ocl method when have ocl module
This commit is contained in:
parent
2cf16db683
commit
632b21e090
@ -5,7 +5,7 @@
|
||||
#include "opencv2/nonfree/nonfree.hpp"
|
||||
#include "opencv2/ml/ml.hpp"
|
||||
#ifdef HAVE_OPENCV_OCL
|
||||
#define _OCL_SVM_ 0 //select whether using ocl::svm method or not, default is not
|
||||
#define _OCL_SVM_ 1 //select whether using ocl::svm method or not, default is using
|
||||
#include "opencv2/ocl/ocl.hpp"
|
||||
#endif
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include "opencv2/ml/ml.hpp"
|
||||
#include "opencv2/highgui/highgui.hpp"
|
||||
#ifdef HAVE_OPENCV_OCL
|
||||
#define _OCL_KNN_ 0 // select whether using ocl::KNN method or not, default is not
|
||||
#define _OCL_SVM_ 0 // select whether using ocl::svm method or not, default is not
|
||||
#define _OCL_KNN_ 1 // select whether using ocl::KNN method or not, default is using
|
||||
#define _OCL_SVM_ 1 // select whether using ocl::svm method or not, default is using
|
||||
#include "opencv2/ocl/ocl.hpp"
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user