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
48e4f66c
Commit
48e4f66c
authored
Jun 08, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified DescriptorMatcher
parent
454e3463
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+5
-11
No files found.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
48e4f66c
...
...
@@ -1577,7 +1577,7 @@ protected:
* The mask may be empty.
*/
virtual
void
matchImpl
(
const
Mat
&
descriptors_1
,
const
Mat
&
descriptors_2
,
const
Mat
&
mask
,
vector
<
int
>&
matches
,
vector
<
double
>&
distances
)
const
=
0
;
const
Mat
&
mask
,
vector
<
int
>&
matches
)
const
=
0
;
static
bool
possibleMatch
(
const
Mat
&
mask
,
int
index_1
,
int
index_2
)
{
...
...
@@ -1605,15 +1605,13 @@ inline void DescriptorMatcher::add( const Mat& descriptors )
inline
void
DescriptorMatcher
::
match
(
const
Mat
&
query
,
vector
<
int
>&
matches
)
const
{
vector
<
double
>
innDistances
;
matchImpl
(
query
,
train
,
Mat
(),
matches
,
innDistances
);
matchImpl
(
query
,
train
,
Mat
(),
matches
);
}
inline
void
DescriptorMatcher
::
match
(
const
Mat
&
query
,
const
Mat
&
mask
,
vector
<
int
>&
matches
)
const
{
vector
<
double
>
innDistances
;
matchImpl
(
query
,
train
,
mask
,
matches
,
innDistances
);
matchImpl
(
query
,
train
,
mask
,
matches
);
}
inline
void
DescriptorMatcher
::
clear
()
...
...
@@ -1638,15 +1636,14 @@ public:
protected
:
virtual
void
matchImpl
(
const
Mat
&
descriptors_1
,
const
Mat
&
descriptors_2
,
const
Mat
&
mask
,
vector
<
int
>&
matches
,
vector
<
double
>&
distances
)
const
;
const
Mat
&
mask
,
vector
<
int
>&
matches
)
const
;
Distance
distance
;
};
template
<
class
Distance
>
void
BruteForceMatcher
<
Distance
>::
matchImpl
(
const
Mat
&
descriptors_1
,
const
Mat
&
descriptors_2
,
const
Mat
&
mask
,
vector
<
int
>&
matches
,
vector
<
double
>&
distances
)
const
const
Mat
&
mask
,
vector
<
int
>&
matches
)
const
{
typedef
typename
Distance
::
ValueType
ValueType
;
typedef
typename
Distance
::
ResultType
DistanceType
;
...
...
@@ -1682,10 +1679,7 @@ void BruteForceMatcher<Distance>::matchImpl( const Mat& descriptors_1, const Mat
}
if
(
matchIndex
!=
-
1
)
{
matches
.
push_back
(
matchIndex
);
distances
.
push_back
(
matchDistance
);
}
}
}
...
...
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