Ask Your Question
0

OpenCv3 AdaBoost RAW_OUTPUT

asked 2017-08-24 02:34:16 -0600

luug gravatar image

I am using openCV and adaBoost to detect people in laser range data. To get the label of a samples the the following function is used:

   cv::ml::StatModel::predict (sample, noArray(), 0)

I also tried to obtain the raw output of the classifier by using:

   cv::ml::StatModel::predict (sample, noArray(), cv::ml::StatModel:: RAW_OUTPUT)

The results of both calls are always equal, thus also the second function which should return the raw output is returning the label.

Is there any other way to get the raw output or am I doing something wrong ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-09-01 09:15:39 -0600

luug gravatar image

The weights of the prediction can be received by using:

cv::ml::StatModel::predict(sample, cv::noArray(), cv::ml::Boost::PREDICT_SUM)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-08-24 02:34:16 -0600

Seen: 463 times

Last updated: Sep 01 '17