1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 14:41:58 +08:00

fix legacy contants

This commit is contained in:
Suleyman TURKMEN
2021-11-29 21:29:31 +03:00
parent a5cc475583
commit 180775f5bb
5 changed files with 15 additions and 20 deletions

View File

@@ -93,7 +93,7 @@ void CvLBPEvaluator::generateFeatures()
CvLBPEvaluator::Feature::Feature()
{
rect = cvRect(0, 0, 0, 0);
rect = Rect(0, 0, 0, 0);
}
CvLBPEvaluator::Feature::Feature( int offset, int x, int y, int _blockWidth, int _blockHeight )
@@ -108,7 +108,7 @@ CvLBPEvaluator::Feature::Feature( int offset, int x, int y, int _blockWidth, int
void CvLBPEvaluator::Feature::calcPoints(int offset)
{
Rect tr = rect = cvRect(x_, y_, block_w_, block_h_);
Rect tr = rect = Rect(x_, y_, block_w_, block_h_);
CV_SUM_OFFSETS( p[0], p[1], p[4], p[5], tr, offset )
tr.x += 2*rect.width;
CV_SUM_OFFSETS( p[2], p[3], p[6], p[7], tr, offset )