Commit 21f962c3 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

small correction to the previous patch (also by Konstantin Krivakin)

parent e3f394af
......@@ -2090,8 +2090,8 @@ float CvSVM::predict( const CvMat* sample, bool returnDFVal ) const
return result;
}
struct predict_body {
predict_body(const CvSVM* _pointer, float* _result, const CvMat* _samples, CvMat* _results)
struct predict_body_svm {
predict_body_svm(const CvSVM* _pointer, float* _result, const CvMat* _samples, CvMat* _results)
{
pointer = _pointer;
result = _result;
......@@ -2123,7 +2123,7 @@ float CvSVM::predict(const CvMat* samples, CV_OUT CvMat* results) const
{
float result = 0;
cv::parallel_for(cv::BlockedRange(0, samples->rows),
predict_body(this, &result, samples, results)
predict_body_svm(this, &result, samples, results)
);
return result;
}
......
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