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
43061d75
Commit
43061d75
authored
May 22, 2014
by
Vlad Shakhuro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cv::adas namespace
parent
b33977d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
14 deletions
+38
-14
acffeature.hpp
modules/adas/include/opencv2/adas/acffeature.hpp
+15
-7
icfdetector.hpp
modules/adas/include/opencv2/adas/icfdetector.hpp
+8
-0
waldboost.hpp
modules/adas/include/opencv2/adas/waldboost.hpp
+15
-7
No files found.
modules/adas/include/opencv2/adas/acffeature.hpp
View file @
43061d75
...
...
@@ -42,6 +42,11 @@ the use of this software, even if advised of the possibility of such damage.
#ifndef __OPENCV_ADAS_ACFFEATURE_HPP__
#define __OPENCV_ADAS_ACFFEATURE_HPP__
namespace
cv
{
namespace
adas
{
class
ACFFeature
{
public
:
...
...
@@ -59,9 +64,9 @@ private:
};
/* Save ACFFeature to FileStorage */
cv
::
FileStorage
&
operator
<<
(
cv
::
FileStorage
&
out
,
const
ACFFeature
&
feature
);
FileStorage
&
operator
<<
(
FileStorage
&
out
,
const
ACFFeature
&
feature
);
/* Load ACFFeature from FileStorage */
cv
::
FileStorage
&
operator
>>
(
cv
::
FileStorage
&
in
,
ACFFeature
&
feature
);
FileStorage
&
operator
>>
(
FileStorage
&
in
,
ACFFeature
&
feature
);
/* Compute channel pyramid for acf features
...
...
@@ -73,8 +78,8 @@ Returns computed channels in vectors N x CH,
N — number of scales (outer vector),
CH — number of channels (inner vectors)
*/
std
::
vector
<
std
::
vector
<
cv
::
Mat_
<
int
>>>
computeChannels
(
const
cv
::
Mat
&
image
,
const
ScaleParams
&
params
);
std
::
vector
<
std
::
vector
<
Mat_
<
int
>>>
computeChannels
(
const
Mat
&
image
,
const
ScaleParams
&
params
);
class
ACFFeatureEvaluator
{
...
...
@@ -83,7 +88,7 @@ public:
ACFFeatureEvaluator
(
const
std
::
vector
<
ACFFeature
>&
features
);
/* Set channels for feature evaluation */
void
setChannels
(
const
std
::
vector
<
cv
::
Mat_
<
int
>>&
channels
);
void
setChannels
(
const
std
::
vector
<
Mat_
<
int
>>&
channels
);
/* Set window position */
void
setPosition
(
Size
position
);
...
...
@@ -96,13 +101,13 @@ public:
Returns matrix-column of features
*/
cv
::
Mat_
<
int
>
evaluateAll
()
const
;
Mat_
<
int
>
evaluateAll
()
const
;
private
:
/* Features to evaluate */
std
::
vector
<
ACFFeature
>
features_
;
/* Channels for feature evaluation */
std
::
vector
<
cv
::
Mat_
<
int
>>
channels
std
::
vector
<
Mat_
<
int
>>
channels
/* Channels window position */
Size
position_
;
};
...
...
@@ -121,4 +126,7 @@ Returns vector of distinct acf features
std
::
vector
<
ACFFeature
>
generateFeatures
(
Size
window_size
,
size_t
count
=
UINT_MAX
,
int
seed
=
0
);
}
/* namespace adas */
}
/* namespace cv */
#endif
/* __OPENCV_ADAS_ACFFEATURE_HPP__ */
modules/adas/include/opencv2/adas/icfdetector.hpp
View file @
43061d75
...
...
@@ -42,6 +42,11 @@ the use of this software, even if advised of the possibility of such damage.
#ifndef __OPENCV_ADAS_ICFDETECTOR_HPP__
#define __OPENCV_ADAS_ICFDETECTOR_HPP__
namespace
cv
{
namespace
adas
{
class
ICFDetector
{
public
:
...
...
@@ -94,4 +99,7 @@ public:
bool
save
(
const
std
::
string
&
filename
);
};
}
/* namespace adas */
}
/* namespace cv */
#endif
/* __OPENCV_ADAS_ICFDETECTOR_HPP__ */
modules/adas/include/opencv2/adas/waldboost.hpp
View file @
43061d75
...
...
@@ -42,6 +42,11 @@ the use of this software, even if advised of the possibility of such damage.
#ifndef __OPENCV_ADAS_WALDBOOST_HPP__
#define __OPENCV_ADAS_WALDBOOST_HPP__
namespace
cv
{
namespace
adas
{
class
Stump
{
public
:
...
...
@@ -54,7 +59,7 @@ public:
Returns chosen feature index. Feature enumeration starts from 0
*/
int
train
(
const
cv
::
Mat_
<
int
>&
data
,
const
cv
::
Mat_
<
int
>&
labels
);
int
train
(
const
Mat_
<
int
>&
data
,
const
Mat_
<
int
>&
labels
);
/* Predict object class given
...
...
@@ -76,9 +81,9 @@ private:
};
/* Save Stump to FileStorage */
cv
::
FileStorage
&
operator
<<
(
cv
::
FileStorage
&
out
,
const
Stump
&
classifier
);
FileStorage
&
operator
<<
(
FileStorage
&
out
,
const
Stump
&
classifier
);
/* Load Stump from FileStorage */
cv
::
FileStorage
&
operator
>>
(
cv
::
FileStorage
&
in
,
Stump
&
classifier
);
FileStorage
&
operator
>>
(
FileStorage
&
in
,
Stump
&
classifier
);
class
WaldBoost
{
...
...
@@ -96,8 +101,8 @@ public:
Returns feature indices chosen for cascade.
Feature enumeration starts from 0
*/
std
::
vector
<
int
>
train
(
const
cv
::
Mat_
<
int
>&
data
,
const
cv
::
Mat_
<
int
>&
labels
);
std
::
vector
<
int
>
train
(
const
Mat_
<
int
>&
data
,
const
Mat_
<
int
>&
labels
);
/* Predict object class given object that can compute object features
...
...
@@ -120,8 +125,11 @@ private:
};
/* Save WaldBoost to FileStorage */
cv
::
FileStorage
&
operator
<<
(
cv
::
FileStorage
&
out
,
const
WaldBoost
&
classifier
);
FileStorage
&
operator
<<
(
FileStorage
&
out
,
const
WaldBoost
&
classifier
);
/* Load WaldBoost from FileStorage */
cv
::
FileStorage
&
operator
>>
(
cv
::
FileStorage
&
in
,
WaldBoost
&
classifier
);
FileStorage
&
operator
>>
(
FileStorage
&
in
,
WaldBoost
&
classifier
);
}
/* namespace adas */
}
/* namespace cv */
#endif
/* __OPENCV_ADAS_WALDBOOST_HPP__ */
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