From 21f962c315d36456b13939a193391bd32f1c2e7f Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 20 Apr 2011 17:56:25 +0000 Subject: [PATCH] small correction to the previous patch (also by Konstantin Krivakin) --- modules/ml/src/svm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ml/src/svm.cpp b/modules/ml/src/svm.cpp index 53b8a22c3..6189dc0ba 100644 --- a/modules/ml/src/svm.cpp +++ b/modules/ml/src/svm.cpp @@ -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; }