Fix warning on precision lost due to double to float conversion.

This commit is contained in:
Mathieu Barnachon 2013-08-22 17:34:31 +12:00
parent 7f3273c77f
commit 4fbd5707f7

View File

@ -1274,7 +1274,7 @@ void CvSVM::get_svm_detector( std::vector< float > & detector ) const
}
detector.push_back( svi );
}
detector.push_back( -decision_func->rho );
detector.push_back( (float)-decision_func->rho );
}
bool CvSVM::set_params( const CvSVMParams& _params )