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
c751e901
Commit
c751e901
authored
Jun 12, 2010
by
Victor Erukhimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed interface for drawMatches
parent
b34f0a2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+3
-3
descriptors.cpp
modules/features2d/src/descriptors.cpp
+3
-3
descriptor_extractor_matcher.cpp
samples/cpp/descriptor_extractor_matcher.cpp
+2
-2
matcher_simple.cpp
samples/cpp/matcher_simple.cpp
+1
-1
No files found.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
c751e901
...
...
@@ -2137,9 +2137,9 @@ struct CV_EXPORTS DrawMatchesFlags
};
// Draws matches of keypints from two images on output image.
CV_EXPORTS
void
drawMatches
(
const
Mat
&
img1
,
const
Mat
&
img2
,
const
vector
<
KeyPoint
>&
keypoints1
,
const
vector
<
KeyPoint
>&
keypoints2
,
const
vector
<
int
>&
matches
,
const
vector
<
char
>&
mask
,
Mat
&
outImg
,
CV_EXPORTS
void
drawMatches
(
const
Mat
&
img1
,
const
vector
<
KeyPoint
>&
keypoints1
,
const
Mat
&
img2
,
const
vector
<
KeyPoint
>&
keypoints2
,
const
vector
<
int
>&
matches
,
Mat
&
outImg
,
const
vector
<
char
>&
mask
=
vector
<
char
>
()
,
const
Scalar
&
matchColor
=
Scalar
::
all
(
-
1
),
const
Scalar
&
singlePointColor
=
Scalar
::
all
(
-
1
),
int
flags
=
DrawMatchesFlags
::
DEFAULT
);
...
...
modules/features2d/src/descriptors.cpp
View file @
c751e901
...
...
@@ -45,9 +45,9 @@ using namespace std;
namespace
cv
{
CV_EXPORTS
void
drawMatches
(
const
Mat
&
img1
,
const
Mat
&
img2
,
const
vector
<
KeyPoint
>&
keypoints1
,
const
vector
<
KeyPoint
>&
keypoints2
,
const
vector
<
int
>&
matches
,
const
vector
<
char
>&
mask
,
Mat
&
outImg
,
CV_EXPORTS
void
drawMatches
(
const
Mat
&
img1
,
const
vector
<
KeyPoint
>&
keypoints1
,
const
Mat
&
img2
,
const
vector
<
KeyPoint
>&
keypoints2
,
const
vector
<
int
>&
matches
,
Mat
&
outImg
,
const
vector
<
char
>&
mask
,
const
Scalar
&
matchColor
,
const
Scalar
&
singlePointColor
,
int
flags
)
{
...
...
samples/cpp/descriptor_extractor_matcher.cpp
View file @
c751e901
...
...
@@ -98,7 +98,7 @@ void doIteration( const Mat& img1, Mat& img2, bool isWarpPerspective,
mask
[
i1
]
=
1
;
}
// draw inliers
drawMatches
(
img1
,
img2
,
keypoints1
,
keypoints2
,
matches
,
mask
,
drawImg
,
CV_RGB
(
0
,
255
,
0
),
CV_RGB
(
0
,
0
,
255
)
);
drawMatches
(
img1
,
keypoints1
,
img2
,
keypoints2
,
matches
,
drawImg
,
mask
,
CV_RGB
(
0
,
255
,
0
),
CV_RGB
(
0
,
0
,
255
)
);
// draw outliers
/*for( size_t i1 = 0; i1 < mask.size(); i1++ )
mask[i1] = !mask[i1];
...
...
@@ -107,7 +107,7 @@ void doIteration( const Mat& img1, Mat& img2, bool isWarpPerspective,
}
else
{
drawMatches
(
img1
,
img2
,
keypoints1
,
keypoints2
,
matches
,
vector
<
char
>
(),
drawImg
,
CV_RGB
(
0
,
255
,
0
)
);
drawMatches
(
img1
,
keypoints1
,
img2
,
keypoints2
,
matches
,
drawImg
,
vector
<
char
>
()
,
CV_RGB
(
0
,
255
,
0
)
);
}
imshow
(
winName
,
drawImg
);
...
...
samples/cpp/matcher_simple.cpp
View file @
c751e901
...
...
@@ -42,7 +42,7 @@ int main(int argc, char** argv)
// drawing the results
namedWindow
(
"matches"
,
1
);
Mat
img_matches
;
drawMatches
(
img1
,
img2
,
keypoints1
,
keypoints2
,
matches
,
vector
<
char
>
()
,
img_matches
);
drawMatches
(
img1
,
keypoints1
,
img2
,
keypoints2
,
matches
,
img_matches
);
imshow
(
"matches"
,
img_matches
);
waitKey
(
0
);
...
...
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