fixed CvSVM
This commit is contained in:
parent
a8bc74f2e1
commit
be189a4578
@ -261,6 +261,7 @@ void CvSVMKernel::calc_poly( int vcount, int var_count, const float** vecs,
|
|||||||
{
|
{
|
||||||
CvMat R = cvMat( 1, vcount, QFLOAT_TYPE, results );
|
CvMat R = cvMat( 1, vcount, QFLOAT_TYPE, results );
|
||||||
calc_non_rbf_base( vcount, var_count, vecs, another, results, params->gamma, params->coef0 );
|
calc_non_rbf_base( vcount, var_count, vecs, another, results, params->gamma, params->coef0 );
|
||||||
|
if( vcount > 0 )
|
||||||
cvPow( &R, &R, params->degree );
|
cvPow( &R, &R, params->degree );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user