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
045402e4
Commit
045402e4
authored
May 26, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
override clear method to VectorDescriptorMatch
parent
97c598c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+17
-10
No files found.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
045402e4
...
...
@@ -1397,7 +1397,7 @@ public:
* matches Indices of the closest matches from the training set
*/
void
match
(
const
Mat
&
query
,
const
Mat
&
mask
,
vector
<
int
>&
matches
,
vector
<
double
>*
distances
=
0
)
const
;
vector
<
int
>&
matches
)
const
;
/*
* Find the best keypoint matches for small view changes.
...
...
@@ -1416,6 +1416,7 @@ public:
/*void matchWindowed( const vector<KeyPoint>& keypoints_1, const Mat& descriptors_1,
const vector<KeyPoint>& keypoints_2, const Mat& descriptors_2,
float maxDeltaX, float maxDeltaY, vector<Match>& matches) const;*/
virtual
void
clear
();
protected
:
Mat
train
;
...
...
@@ -1458,15 +1459,15 @@ inline void DescriptorMatcher::match( const Mat& query, vector<int>& matches ) c
}
inline
void
DescriptorMatcher
::
match
(
const
Mat
&
query
,
const
Mat
&
mask
,
vector
<
int
>&
matches
,
vector
<
double
>*
distances
)
const
vector
<
int
>&
matches
)
const
{
if
(
distances
)
matchImpl
(
query
,
train
,
mask
,
matches
,
*
d
istances
);
else
{
vector
<
double
>
innDistances
;
matchImpl
(
query
,
train
,
mask
,
matches
,
innDistances
);
}
vector
<
double
>
innDistances
;
matchImpl
(
query
,
train
,
mask
,
matches
,
innD
istances
);
}
inline
void
DescriptorMatcher
::
clear
()
{
train
.
release
();
}
/*
...
...
@@ -1828,10 +1829,16 @@ public:
matcher
.
match
(
descriptors
,
keypointIndices
);
};
virtual
void
clear
()
{
GenericDescriptorMatch
::
clear
();
matcher
.
clear
();
}
protected
:
Extractor
extractor
;
Matcher
matcher
;
vector
<
int
>
classIds
;
//
vector<int> classIds;
};
}
...
...
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