Changed line 1266 in svm.cpp to allow the new kernels to be used
This commit is contained in:
		@@ -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 )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user