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
09286322
Commit
09286322
authored
Aug 11, 2015
by
Vlad Shakhuro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add namespaces
parent
5992dedf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
8 deletions
+31
-8
features.cpp
modules/xobjdetect/src/features.cpp
+7
-4
lbpfeatures.cpp
modules/xobjdetect/src/lbpfeatures.cpp
+5
-1
lbpfeatures.h
modules/xobjdetect/src/lbpfeatures.h
+7
-0
traincascade_features.h
modules/xobjdetect/src/traincascade_features.h
+6
-0
waldboost.cpp
modules/xobjdetect/src/waldboost.cpp
+4
-3
waldboost.hpp
modules/xobjdetect/src/waldboost.hpp
+2
-0
No files found.
modules/xobjdetect/src/features.cpp
View file @
09286322
...
...
@@ -44,8 +44,8 @@ the use of this software, even if advised of the possibility of such damage.
#include "precomp.hpp"
using
namespace
std
;
using
namespace
cv
;
namespace
cv
{
namespace
xobjdetect
{
float
calcNormFactor
(
const
Mat
&
sum
,
const
Mat
&
sqSum
)
{
...
...
@@ -63,9 +63,9 @@ float calcNormFactor( const Mat& sum, const Mat& sqSum )
CvParams
::
CvParams
()
:
name
(
"params"
)
{}
void
CvParams
::
printDefaults
()
const
{
cout
<<
"--"
<<
name
<<
"--"
<<
endl
;
}
{
std
::
cout
<<
"--"
<<
name
<<
"--"
<<
std
::
endl
;
}
void
CvParams
::
printAttrs
()
const
{}
bool
CvParams
::
scanAttr
(
const
st
ring
,
const
string
)
{
return
false
;
}
bool
CvParams
::
scanAttr
(
const
st
d
::
string
,
const
std
::
string
)
{
return
false
;
}
//---------------------------- FeatureParams --------------------------------------
...
...
@@ -126,3 +126,6 @@ Ptr<CvFeatureEvaluator> CvFeatureEvaluator::create()
{
return
Ptr
<
CvFeatureEvaluator
>
(
new
CvLBPEvaluator
);
}
}
}
modules/xobjdetect/src/lbpfeatures.cpp
View file @
09286322
...
...
@@ -45,7 +45,8 @@ the use of this software, even if advised of the possibility of such damage.
#include "precomp.hpp"
using
namespace
cv
;
namespace
cv
{
namespace
xobjdetect
{
CvLBPFeatureParams
::
CvLBPFeatureParams
()
{
...
...
@@ -122,3 +123,6 @@ void CvLBPEvaluator::Feature::write(FileStorage &fs) const
{
fs
<<
CC_RECT
<<
"[:"
<<
rect
.
x
<<
rect
.
y
<<
rect
.
width
<<
rect
.
height
<<
"]"
;
}
}
}
modules/xobjdetect/src/lbpfeatures.h
View file @
09286322
...
...
@@ -49,6 +49,10 @@ the use of this software, even if advised of the possibility of such damage.
#define LBPF_NAME "lbpFeatureParams"
namespace
cv
{
namespace
xobjdetect
{
struct
CvLBPFeatureParams
:
CvFeatureParams
{
CvLBPFeatureParams
();
...
...
@@ -106,4 +110,7 @@ inline uchar CvLBPEvaluator::Feature::calc(const cv::Mat &_sum)
(
psum
[
p
[
4
]]
-
psum
[
p
[
5
]]
-
psum
[
p
[
8
]]
+
psum
[
p
[
9
]]
>=
cval
?
1
:
0
));
// 3
}
}
}
#endif
modules/xobjdetect/src/traincascade_features.h
View file @
09286322
...
...
@@ -70,6 +70,9 @@ the use of this software, even if advised of the possibility of such damage.
(p3) = (rect).x + (rect).width - (rect).height \
+ (step) * ((rect).y + (rect).width + (rect).height);
namespace
cv
{
namespace
xobjdetect
{
float
calcNormFactor
(
const
cv
::
Mat
&
sum
,
const
cv
::
Mat
&
sqSum
);
template
<
class
Feature
>
...
...
@@ -142,4 +145,7 @@ protected:
cv
::
Mat
cls
;
};
}
}
#endif
modules/xobjdetect/src/waldboost.cpp
View file @
09286322
...
...
@@ -44,8 +44,8 @@ the use of this software, even if advised of the possibility of such damage.
#include "precomp.hpp"
namespace
cv
{
namespace
cv
{
namespace
xobjdetect
{
static
void
compute_cdf
(
const
Mat1b
&
data
,
const
Mat1f
&
weights
,
...
...
@@ -395,4 +395,5 @@ WaldBoost::~WaldBoost()
{
}
};
}
}
modules/xobjdetect/src/waldboost.hpp
View file @
09286322
...
...
@@ -48,6 +48,7 @@ the use of this software, even if advised of the possibility of such damage.
#include "precomp.hpp"
namespace
cv
{
namespace
xobjdetect
{
class
WaldBoost
{
public
:
...
...
@@ -83,6 +84,7 @@ private:
std
::
vector
<
float
>
cascade_thresholds_
;
};
}
}
#endif
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