projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cab679
)
Changed line 1266 in svm.cpp to allow the new kernels to be used
author
Markus Schoeler
<mschoeler@physik3.gwdg.de>
Thu, 14 Feb 2013 14:28:10 +0000
(15:28 +0100)
committer
Markus Schoeler
<mschoeler@physik3.gwdg.de>
Thu, 14 Feb 2013 14:28:10 +0000
(15:28 +0100)
modules/ml/src/svm.cpp
patch
|
blob
|
history
diff --git
a/modules/ml/src/svm.cpp
b/modules/ml/src/svm.cpp
index
90d800a
..
c7e41b7
100644
(file)
--- a/
modules/ml/src/svm.cpp
+++ b/
modules/ml/src/svm.cpp
@@
-1262,7
+1262,8
@@
bool CvSVM::set_params( const CvSVMParams& _params )
svm_type = params.svm_type;
if( kernel_type != LINEAR && kernel_type != POLY &&
- kernel_type != SIGMOID && kernel_type != RBF )
+ kernel_type != SIGMOID && kernel_type != RBF &&
+ kernel_type != INTER && kernel_type != CHI2)
CV_ERROR( CV_StsBadArg, "Unknown/unsupported kernel type" );
if( kernel_type == LINEAR )