mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
Merge pull request #14520 from kupferb:patch-1
This commit is contained in:
commit
2fd1a4eef7
@ -153,14 +153,14 @@ void CvHaarEvaluator::generateFeatures()
|
|||||||
{
|
{
|
||||||
features.push_back( Feature( offset, false,
|
features.push_back( Feature( offset, false,
|
||||||
x, y, dx*3, dy, -1,
|
x, y, dx*3, dy, -1,
|
||||||
x+dx, y, dx , dy, +3 ) );
|
x+dx, y, dx , dy, +2 ) );
|
||||||
}
|
}
|
||||||
// haar_y3
|
// haar_y3
|
||||||
if ( (x+dx <= winSize.width) && (y+dy*3 <= winSize.height) )
|
if ( (x+dx <= winSize.width) && (y+dy*3 <= winSize.height) )
|
||||||
{
|
{
|
||||||
features.push_back( Feature( offset, false,
|
features.push_back( Feature( offset, false,
|
||||||
x, y, dx, dy*3, -1,
|
x, y, dx, dy*3, -1,
|
||||||
x, y+dy, dx, dy, +3 ) );
|
x, y+dy, dx, dy, +2 ) );
|
||||||
}
|
}
|
||||||
if( mode != CvHaarFeatureParams::BASIC )
|
if( mode != CvHaarFeatureParams::BASIC )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user