Skip to content

Commit

Permalink
Update haarfeatures.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
teng88 committed Dec 7, 2015
1 parent d68c392 commit 8a36402
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/traincascade/haarfeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ void CvHaarEvaluator::setImage(const Mat& img, uchar clsLabel, int idx)
Mat innSum(winSize.height + 1, winSize.width + 1, sum.type(), sum.ptr<int>((int)idx));
Mat innSqSum;
if (((const CvHaarFeatureParams*)featureParams)->mode == CvHaarFeatureParams::ALL) {
Mat innTilted(winSize.height + 1, winSize.width + 1, tilted.type(), tilted.ptr<int>((int)idx));
integral(img, innSum, innSqSum, innTilted);
}
else
integral(img, innSum, innSqSum);
Mat innTilted(winSize.height + 1, winSize.width + 1, tilted.type(), tilted.ptr<int>((int)idx));
integral(img, innSum, innSqSum, innTilted);
}
else
integral(img, innSum, innSqSum);
normfactor.ptr<float>(0)[idx] = calcNormFactor( innSum, innSqSum );
}

Expand Down

0 comments on commit 8a36402

Please sign in to comment.