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:
9484355
)
Minor change of SimpleBlobDetector
author
Ilya Lysenkov
<no@email>
Thu, 9 Jun 2011 12:49:23 +0000
(12:49 +0000)
committer
Ilya Lysenkov
<no@email>
Thu, 9 Jun 2011 12:49:23 +0000
(12:49 +0000)
modules/features2d/src/blobdetector.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/blobdetector.cpp
b/modules/features2d/src/blobdetector.cpp
index
fce0a2b
..
8a55449
100644
(file)
--- a/
modules/features2d/src/blobdetector.cpp
+++ b/
modules/features2d/src/blobdetector.cpp
@@
-231,7
+231,7
@@
void SimpleBlobDetector::detectImpl(const cv::Mat& image, std::vector<cv::KeyPoi
bool isNew = true;
for (size_t j = 0; j < centers.size(); j++)
{
- double dist = norm(centers[j][
0
].location - curCenters[i].location);
+ double dist = norm(centers[j][
centers[j].size() / 2
].location - curCenters[i].location);
isNew = dist >= params.minDistBetweenBlobs && dist >= centers[j][ centers[j].size() / 2 ].radius && dist >= curCenters[i].radius;
if (!isNew)
{