mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
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…
Reference in New Issue
Block a user