mlnbayes.cpp CvNormalBayesClassifier::train() covariance calculation (Feature #38)
Description
Hello,
please take a look at the train() method where the covariance calculation is done. In line 242 there is:
double s1val = sum1[j];
shouldn't there rather be:
double s1val = sum1[i];
?
I might be wrong, but the j variable is not used yet inside the loop. Patch attached.
OpenCV rocks! Keep up the good work!
Cheers, Markus
Associated revisions
Fix Mat indexing in TrackingMotion tutorial code (supersedes pull request #38)
Merge pull request #38 from jet47/clahe
sanity data for CLAHE
History
Updated by Vadim Pisarevsky about 15 years ago
thanks! fixed in r2457
- Status changed from Open to Done
- (deleted custom field) set to fixed