Merge pull request #3612 from guoyejun:fix_face_detect

This commit is contained in:
Vadim Pisarevsky 2015-02-05 07:50:13 +00:00
commit 1e47c6cc56

View File

@ -449,6 +449,12 @@ bool FeatureEvaluator::updateScaleData( Size imgsz, const std::vector<float>& _s
s.ystep = sc >= 2 ? 1 : 2; s.ystep = sc >= 2 ? 1 : 2;
s.scale = sc; s.scale = sc;
s.szi = Size(sz.width+1, sz.height+1); s.szi = Size(sz.width+1, sz.height+1);
if( i == 0 )
{
layer_dy = s.szi.height;
}
if( layer_ofs.x + s.szi.width > sbufSize.width ) if( layer_ofs.x + s.szi.width > sbufSize.width )
{ {
layer_ofs = Point(0, layer_ofs.y + layer_dy); layer_ofs = Point(0, layer_ofs.y + layer_dy);