This commit is contained in:
Maria Dimashova 2010-11-12 14:04:35 +00:00
parent 7fe4fbfc68
commit 7192bf951c

View File

@ -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 );