Fix warning on precision lost due to double to float conversion.
This commit is contained in:
parent
7f3273c77f
commit
4fbd5707f7
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user