Commit 4fbd5707 authored by Mathieu Barnachon's avatar Mathieu Barnachon

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

parent 7f3273c7
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment