From: Markus Schoeler Date: Thu, 14 Feb 2013 14:28:10 +0000 (+0100) Subject: Changed line 1266 in svm.cpp to allow the new kernels to be used X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~1170^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddb0afbc444171d1abd8af96108c1665ecd93d94;p=profile%2Fivi%2Fopencv.git Changed line 1266 in svm.cpp to allow the new kernels to be used --- diff --git a/modules/ml/src/svm.cpp b/modules/ml/src/svm.cpp index 90d800a..c7e41b7 100644 --- 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 )