Merge pull request #1483 from kecsap:nbayes

This commit is contained in:
Alexander Smorkalov 2013-09-23 10:26:44 +04:00 committed by OpenCV Buildbot
commit 02247de339

View File

@ -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++ )