Commit ddb0afbc authored by Markus Schoeler's avatar Markus Schoeler

Changed line 1266 in svm.cpp to allow the new kernels to be used

parent 7cab6798
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment