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
594f9696
Commit
594f9696
authored
Jan 22, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Jan 22, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #316 from mdim:draw_matches_fix
parents
a45eb275
93f8e7ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
draw.cpp
modules/features2d/src/draw.cpp
+5
-2
No files found.
modules/features2d/src/draw.cpp
View file @
594f9696
...
...
@@ -200,10 +200,13 @@ void drawMatches( const Mat& img1, const vector<KeyPoint>& keypoints1,
// draw matches
for
(
size_t
m
=
0
;
m
<
matches1to2
.
size
();
m
++
)
{
int
i1
=
matches1to2
[
m
].
queryIdx
;
int
i2
=
matches1to2
[
m
].
trainIdx
;
if
(
matchesMask
.
empty
()
||
matchesMask
[
m
]
)
{
int
i1
=
matches1to2
[
m
].
queryIdx
;
int
i2
=
matches1to2
[
m
].
trainIdx
;
CV_Assert
(
i1
>=
0
&&
i1
<
static_cast
<
int
>
(
keypoints1
.
size
()));
CV_Assert
(
i2
>=
0
&&
i2
<
static_cast
<
int
>
(
keypoints2
.
size
()));
const
KeyPoint
&
kp1
=
keypoints1
[
i1
],
&
kp2
=
keypoints2
[
i2
];
_drawMatch
(
outImg
,
outImg1
,
outImg2
,
kp1
,
kp2
,
matchColor
,
flags
);
}
...
...
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