CvBoost.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:OpenCV_Android_Plus 作者:
/**
* <p>Predicts a response for an input sample.</p>
*
* <p>The method runs the sample through the trees in the ensemble and returns the
* output class label based on the weighted voting.</p>
*
* @param sample Input sample.
* @param missing Optional mask of missing measurements. To handle missing
* measurements, the weak classifiers must include surrogate splits (see
* <code>CvDTreeParams.use_surrogates</code>).
* @param slice Continuous subset of the sequence of weak classifiers to be used
* for prediction. By default, all the weak classifiers are used.
* @param rawMode Normally, it should be set to <code>false</code>.
* @param returnSum If <code>true</code> then return sum of votes instead of the
* class label.
*
* @see <a href="http://docs.opencv.org/modules/ml/doc/boosting.html#cvboost-predict">org.opencv.ml.CvBoost.predict</a>
*/
   public  float predict(Mat sample, Mat missing, Range slice, boolean rawMode, boolean returnSum)
   {

       float retVal = predict_0(nativeObj, sample.nativeObj, missing.nativeObj, slice.start, slice.end, rawMode, returnSum);

       return retVal;
   }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号