Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a0c2718a
Commit
a0c2718a
authored
Feb 20, 2018
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10902 from alalek:port_10695
parents
a836892e
aab390c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
blobdetector.cpp
modules/features2d/src/blobdetector.cpp
+6
-2
No files found.
modules/features2d/src/blobdetector.cpp
View file @
a0c2718a
...
...
@@ -304,11 +304,10 @@ void SimpleBlobDetectorImpl::findBlobs(InputArray _image, InputArray _binaryImag
#endif
}
void
SimpleBlobDetectorImpl
::
detect
(
InputArray
image
,
std
::
vector
<
cv
::
KeyPoint
>&
keypoints
,
InputArray
)
void
SimpleBlobDetectorImpl
::
detect
(
InputArray
image
,
std
::
vector
<
cv
::
KeyPoint
>&
keypoints
,
InputArray
mask
)
{
CV_INSTRUMENT_REGION
()
//TODO: support mask
keypoints
.
clear
();
Mat
grayscaleImage
;
if
(
image
.
channels
()
==
3
||
image
.
channels
()
==
4
)
...
...
@@ -372,6 +371,11 @@ void SimpleBlobDetectorImpl::detect(InputArray image, std::vector<cv::KeyPoint>&
KeyPoint
kpt
(
sumPoint
,
(
float
)(
centers
[
i
][
centers
[
i
].
size
()
/
2
].
radius
)
*
2.0
f
);
keypoints
.
push_back
(
kpt
);
}
if
(
!
mask
.
empty
())
{
KeyPointsFilter
::
runByPixelsMask
(
keypoints
,
mask
.
getMat
());
}
}
Ptr
<
SimpleBlobDetector
>
SimpleBlobDetector
::
create
(
const
SimpleBlobDetector
::
Params
&
params
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment