Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
632b21e0
Commit
632b21e0
authored
Nov 12, 2013
by
Baichuan Su
Committed by
Ilya Lavrenov
Dec 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify default setting, using ocl method when have ocl module
parent
2cf16db6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bagofwords_classification.cpp
samples/cpp/bagofwords_classification.cpp
+1
-1
points_classifier.cpp
samples/cpp/points_classifier.cpp
+2
-2
No files found.
samples/cpp/bagofwords_classification.cpp
View file @
632b21e0
...
...
@@ -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
...
...
samples/cpp/points_classifier.cpp
View file @
632b21e0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment