Merge pull request #1483 from kecsap:nbayes

pull/1487/merge
Alexander Smorkalov 11 years ago committed by OpenCV Buildbot
commit 02247de339
  1. 2
      modules/ml/src/nbayes.cpp

@ -210,6 +210,8 @@ bool CvNormalBayesClassifier::train( const CvMat* _train_data, const CvMat* _res
prod_data[c2] += train_vec[c2]*val1;
}
}
cvReleaseMat( &responses );
responses = 0;
/* calculate avg, covariance matrix, c */
for( cls = 0; cls < nclasses; cls++ )

Loading…
Cancel
Save