pull/13383/head
Maria Dimashova 14 years ago
parent 7fe4fbfc68
commit 7192bf951c
  1. 4
      modules/features2d/src/surf.cpp

@ -442,9 +442,9 @@ struct SURFInvoker
int maxSize = 0;
for( k = k1; k < k2; k++ )
{
{
maxSize = std::max(maxSize, ((CvSURFPoint*)cvGetSeqElem( keypoints, k ))->size);
}
}
maxSize = cvCeil((PATCH_SZ+1)*maxSize*1.2f/9.0f);
Ptr<CvMat> winbuf = cvCreateMat( 1, maxSize > 0 ? maxSize*maxSize : 1, CV_8U );

Loading…
Cancel
Save