projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fe4fbf
)
minor
author
Maria Dimashova
<no@email>
Fri, 12 Nov 2010 14:04:35 +0000
(14:04 +0000)
committer
Maria Dimashova
<no@email>
Fri, 12 Nov 2010 14:04:35 +0000
(14:04 +0000)
modules/features2d/src/surf.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/surf.cpp
b/modules/features2d/src/surf.cpp
index 5a184684ec6c5612350d3aa9dd94f6497ab67bfa..a80b2734b9877f4361e4861f9ec5cea57d376af0 100644
(file)
--- a/
modules/features2d/src/surf.cpp
+++ b/
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 );