diff --git a/samples/cpp/bagofwords_classification.cpp b/samples/cpp/bagofwords_classification.cpp index fbb312f930..db194b536c 100644 --- a/samples/cpp/bagofwords_classification.cpp +++ b/samples/cpp/bagofwords_classification.cpp @@ -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 diff --git a/samples/cpp/points_classifier.cpp b/samples/cpp/points_classifier.cpp index b0dc0357c9..b7e890d17b 100644 --- a/samples/cpp/points_classifier.cpp +++ b/samples/cpp/points_classifier.cpp @@ -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