Commit 7192bf95 authored by Maria Dimashova's avatar Maria Dimashova

minor

parent 7fe4fbfc
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment