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
4f161937
Commit
4f161937
authored
Jun 10, 2014
by
Vlad Shakhuro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix interface for acf feature
parent
5a939dca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
acffeature.hpp
apps/icf/acffeature.hpp
+8
-10
No files found.
apps/icf/acffeature.hpp
View file @
4f161937
...
...
@@ -57,16 +57,16 @@ namespace adas
channels — output array for computed channels
*/
void
computeChannels
(
cv
::
InputArray
image
,
cv
::
OutputArrayOfArrays
channels
);
void
computeChannels
(
InputArray
image
,
OutputArrayOfArrays
channels
);
class
ACFFeatureEvaluator
{
public
:
/* Construct evaluator, set features to evaluate */
ACFFeatureEvaluator
(
const
std
::
vector
<
Point
>&
features
);
ACFFeatureEvaluator
(
const
std
::
vector
<
Point
3i
>&
features
);
/* Set channels for feature evaluation */
void
setChannels
(
cv
::
InputArrayOfArrays
channels
);
void
setChannels
(
InputArrayOfArrays
channels
);
/* Set window position */
void
setPosition
(
Size
position
);
...
...
@@ -79,13 +79,13 @@ public:
Returns matrix-column of features
*/
void
evaluateAll
(
cv
::
OutputArray
)
const
;
void
evaluateAll
(
OutputArray
feature_values
)
const
;
private
:
/* Features to evaluate */
std
::
vector
<
Point
>
features_
;
std
::
vector
<
Point
3i
>
features_
;
/* Channels for feature evaluation */
std
::
vector
<
cv
::
Mat
>
channels
;
std
::
vector
<
Mat
>
channels_
;
/* Channels window position */
Size
position_
;
};
...
...
@@ -97,12 +97,10 @@ private:
count — number of features to generate.
Max number of features is min(count, # possible distinct features)
seed — random number generator initializer
Returns vector of distinct acf features
*/
std
::
vector
<
Point
>
generateFeatures
(
Size
window_size
,
size_t
count
=
UINT_MAX
,
int
seed
=
0
);
std
::
vector
<
Point
3i
>
generateFeatures
(
Size
window_size
,
int
count
=
INT_MAX
);
}
/* namespace adas */
}
/* namespace cv */
...
...
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