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
185fe7aa
Commit
185fe7aa
authored
Aug 17, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7094 from terfendail:MSER_fix
parents
89833fa0
62c1a5a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
features2d.hpp
modules/features2d/include/opencv2/features2d.hpp
+1
-1
mser.cpp
modules/features2d/src/mser.cpp
+2
-3
No files found.
modules/features2d/include/opencv2/features2d.hpp
View file @
185fe7aa
...
...
@@ -355,7 +355,7 @@ public:
/** @brief Detect %MSER regions
@param image input image (8UC1, 8UC3 or 8UC4)
@param image input image (8UC1, 8UC3 or 8UC4
, must be greater or equal than 3x3
)
@param msers resulting list of point sets
@param bboxes resulting bounding boxes
*/
...
...
modules/features2d/src/mser.cpp
View file @
185fe7aa
...
...
@@ -1020,13 +1020,12 @@ extractMSER_8uC3( const Mat& src,
void
MSER_Impl
::
detectRegions
(
InputArray
_src
,
vector
<
vector
<
Point
>
>&
msers
,
vector
<
Rect
>&
bboxes
)
{
Mat
src
=
_src
.
getMat
();
size_t
npix
=
src
.
total
();
msers
.
clear
();
bboxes
.
clear
();
if
(
npix
==
0
)
return
;
if
(
src
.
rows
<
3
||
src
.
cols
<
3
)
CV_Error
(
Error
::
StsBadArg
,
"Input image is too small. Expected at least 3x3"
)
;
Size
size
=
src
.
size
();
...
...
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