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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user