Modify default setting, using ocl method when have ocl module

pull/1924/head
Baichuan Su 12 years ago committed by Ilya Lavrenov
parent 2cf16db683
commit 632b21e090
  1. 2
      samples/cpp/bagofwords_classification.cpp
  2. 4
      samples/cpp/points_classifier.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

@ -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…
Cancel
Save