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
da3a60a5
Commit
da3a60a5
authored
Oct 12, 2011
by
Leonid Beynenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made changes in the method of inserting prefilters into the CascadeClassifier class.
parent
8f108b4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
objdetect.hpp
modules/objdetect/include/opencv2/objdetect/objdetect.hpp
+1
-0
cascadedetect.cpp
modules/objdetect/src/cascadedetect.cpp
+5
-0
No files found.
modules/objdetect/include/opencv2/objdetect/objdetect.hpp
View file @
da3a60a5
...
...
@@ -474,6 +474,7 @@ public:
{
public
:
virtual
cv
::
Mat
generateMask
(
const
cv
::
Mat
&
src
)
=
0
;
virtual
void
initializeMask
(
const
cv
::
Mat
&
src
)
{};
};
void
setMaskGenerator
(
Ptr
<
MaskGenerator
>
maskGenerator
);
Ptr
<
MaskGenerator
>
getMaskGenerator
();
...
...
modules/objdetect/src/cascadedetect.cpp
View file @
da3a60a5
...
...
@@ -1029,6 +1029,11 @@ void CascadeClassifier::detectMultiScale( const Mat& image, vector<Rect>& object
objects
.
clear
();
if
(
!
maskGenerator
.
empty
())
{
maskGenerator
->
initializeMask
(
image
);
}
if
(
maxObjectSize
.
height
==
0
||
maxObjectSize
.
width
==
0
)
maxObjectSize
=
image
.
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