Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
26b3b3c1
Commit
26b3b3c1
authored
Mar 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xobjdetect: apply CV_OVERRIDE/CV_FINAL
parent
64d58861
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
feature_evaluator.hpp
modules/xobjdetect/src/feature_evaluator.hpp
+2
-2
lbpfeatures.h
modules/xobjdetect/src/lbpfeatures.h
+6
-6
wbdetector.hpp
modules/xobjdetect/src/wbdetector.hpp
+5
-5
No files found.
modules/xobjdetect/src/feature_evaluator.hpp
View file @
26b3b3c1
...
...
@@ -111,8 +111,8 @@ public:
enum
{
HAAR
=
0
,
LBP
=
1
,
HOG
=
2
};
CvFeatureParams
();
virtual
void
init
(
const
CvFeatureParams
&
fp
);
virtual
void
write
(
cv
::
FileStorage
&
fs
)
const
;
virtual
bool
read
(
const
cv
::
FileNode
&
node
);
virtual
void
write
(
cv
::
FileStorage
&
fs
)
const
CV_OVERRIDE
;
virtual
bool
read
(
const
cv
::
FileNode
&
node
)
CV_OVERRIDE
;
static
cv
::
Ptr
<
CvFeatureParams
>
create
();
int
maxCatCount
;
// 0 in case of numerical features
int
featSize
;
// 1 in case of simple features (HAAR, LBP) and N_BINS(9)*N_CELLS(4) in case of Dalal's HOG features
...
...
modules/xobjdetect/src/lbpfeatures.h
View file @
26b3b3c1
...
...
@@ -64,15 +64,15 @@ class CvLBPEvaluator : public CvFeatureEvaluator
public
:
virtual
~
CvLBPEvaluator
()
{}
virtual
void
init
(
const
CvFeatureParams
*
_featureParams
,
int
_maxSampleCount
,
cv
::
Size
_winSize
);
virtual
void
setImage
(
const
cv
::
Mat
&
img
,
uchar
clsLabel
,
int
idx
,
const
std
::
vector
<
int
>
&
feature_ind
);
virtual
void
setWindow
(
const
cv
::
Point
&
p
)
int
_maxSampleCount
,
cv
::
Size
_winSize
)
CV_OVERRIDE
;
virtual
void
setImage
(
const
cv
::
Mat
&
img
,
uchar
clsLabel
,
int
idx
,
const
std
::
vector
<
int
>
&
feature_ind
)
CV_OVERRIDE
;
virtual
void
setWindow
(
const
cv
::
Point
&
p
)
CV_OVERRIDE
{
cur_sum
=
sum
.
rowRange
(
p
.
y
,
p
.
y
+
winSize
.
height
).
colRange
(
p
.
x
,
p
.
x
+
winSize
.
width
);
}
virtual
float
operator
()(
int
featureIdx
)
virtual
float
operator
()(
int
featureIdx
)
CV_OVERRIDE
{
return
(
float
)
features
[
featureIdx
].
calc
(
cur_sum
);
}
virtual
void
writeFeatures
(
cv
::
FileStorage
&
fs
,
const
cv
::
Mat
&
featureMap
)
const
;
virtual
void
writeFeatures
(
cv
::
FileStorage
&
fs
,
const
cv
::
Mat
&
featureMap
)
const
CV_OVERRIDE
;
protected
:
virtual
void
generateFeatures
();
virtual
void
generateFeatures
()
CV_OVERRIDE
;
class
Feature
{
...
...
modules/xobjdetect/src/wbdetector.hpp
View file @
26b3b3c1
...
...
@@ -52,19 +52,19 @@ namespace cv
namespace
xobjdetect
{
class
WBDetectorImpl
:
public
WBDetector
{
class
WBDetectorImpl
CV_FINAL
:
public
WBDetector
{
public
:
virtual
void
read
(
const
FileNode
&
node
);
virtual
void
write
(
FileStorage
&
fs
)
const
;
virtual
void
read
(
const
FileNode
&
node
)
CV_OVERRIDE
;
virtual
void
write
(
FileStorage
&
fs
)
const
CV_OVERRIDE
;
virtual
void
train
(
const
std
::
string
&
pos_samples
,
const
std
::
string
&
neg_imgs
);
const
std
::
string
&
neg_imgs
)
CV_OVERRIDE
;
virtual
void
detect
(
const
Mat
&
img
,
std
::
vector
<
Rect
>
&
bboxes
,
std
::
vector
<
double
>
&
confidences
);
std
::
vector
<
double
>
&
confidences
)
CV_OVERRIDE
;
private
:
WaldBoost
boost_
;
...
...
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