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
5d863f75
Commit
5d863f75
authored
Jul 11, 2013
by
abidrahmank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drawMatches python bindings
parent
68a992b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
features2d.hpp
modules/features2d/include/opencv2/features2d.hpp
+4
-4
cv2.cpp
modules/python/src2/cv2.cpp
+6
-3
No files found.
modules/features2d/include/opencv2/features2d.hpp
View file @
5d863f75
...
...
@@ -1404,15 +1404,15 @@ CV_EXPORTS_W void drawKeypoints( const Mat& image, const std::vector<KeyPoint>&
const
Scalar
&
color
=
Scalar
::
all
(
-
1
),
int
flags
=
DrawMatchesFlags
::
DEFAULT
);
// Draws matches of keypints from two images on output image.
CV_EXPORTS
void
drawMatches
(
const
Mat
&
img1
,
const
std
::
vector
<
KeyPoint
>&
keypoints1
,
CV_EXPORTS
_W
void
drawMatches
(
const
Mat
&
img1
,
const
std
::
vector
<
KeyPoint
>&
keypoints1
,
const
Mat
&
img2
,
const
std
::
vector
<
KeyPoint
>&
keypoints2
,
const
std
::
vector
<
DMatch
>&
matches1to2
,
Mat
&
outImg
,
const
std
::
vector
<
DMatch
>&
matches1to2
,
CV_OUT
Mat
&
outImg
,
const
Scalar
&
matchColor
=
Scalar
::
all
(
-
1
),
const
Scalar
&
singlePointColor
=
Scalar
::
all
(
-
1
),
const
std
::
vector
<
char
>&
matchesMask
=
std
::
vector
<
char
>
(),
int
flags
=
DrawMatchesFlags
::
DEFAULT
);
CV_EXPORTS
void
drawMatches
(
const
Mat
&
img1
,
const
std
::
vector
<
KeyPoint
>&
keypoints1
,
CV_EXPORTS
_AS
(
drawMatchesKnn
)
void
drawMatches
(
const
Mat
&
img1
,
const
std
::
vector
<
KeyPoint
>&
keypoints1
,
const
Mat
&
img2
,
const
std
::
vector
<
KeyPoint
>&
keypoints2
,
const
std
::
vector
<
std
::
vector
<
DMatch
>
>&
matches1to2
,
Mat
&
outImg
,
const
std
::
vector
<
std
::
vector
<
DMatch
>
>&
matches1to2
,
CV_OUT
Mat
&
outImg
,
const
Scalar
&
matchColor
=
Scalar
::
all
(
-
1
),
const
Scalar
&
singlePointColor
=
Scalar
::
all
(
-
1
),
const
std
::
vector
<
std
::
vector
<
char
>
>&
matchesMask
=
std
::
vector
<
std
::
vector
<
char
>
>
(),
int
flags
=
DrawMatchesFlags
::
DEFAULT
);
...
...
modules/python/src2/cv2.cpp
View file @
5d863f75
...
...
@@ -97,6 +97,7 @@ using namespace cv;
typedef
cv
::
softcascade
::
ChannelFeatureBuilder
softcascade_ChannelFeatureBuilder
;
typedef
std
::
vector
<
uchar
>
vector_uchar
;
typedef
std
::
vector
<
char
>
vector_char
;
typedef
std
::
vector
<
int
>
vector_int
;
typedef
std
::
vector
<
float
>
vector_float
;
typedef
std
::
vector
<
double
>
vector_double
;
...
...
@@ -112,6 +113,8 @@ typedef std::vector<KeyPoint> vector_KeyPoint;
typedef
std
::
vector
<
Mat
>
vector_Mat
;
typedef
std
::
vector
<
DMatch
>
vector_DMatch
;
typedef
std
::
vector
<
String
>
vector_String
;
typedef
std
::
vector
<
std
::
vector
<
char
>
>
vector_vector_char
;
typedef
std
::
vector
<
std
::
vector
<
Point
>
>
vector_vector_Point
;
typedef
std
::
vector
<
std
::
vector
<
Point2f
>
>
vector_vector_Point2f
;
typedef
std
::
vector
<
std
::
vector
<
Point3f
>
>
vector_vector_Point3f
;
...
...
@@ -830,7 +833,7 @@ template<typename _Tp> struct pyopencvVecConverter
}
};
template
<
typename
_Tp
>
template
<
typename
_Tp
>
bool
pyopencv_to
(
PyObject
*
obj
,
std
::
vector
<
_Tp
>&
value
,
const
ArgInfo
info
)
{
return
pyopencvVecConverter
<
_Tp
>::
to
(
obj
,
value
,
info
);
...
...
@@ -888,9 +891,9 @@ template<typename _Tp> static inline PyObject* pyopencv_from_generic_vec(const s
template
<
typename
_Tp
>
struct
pyopencvVecConverter
<
std
::
vector
<
_Tp
>
>
{
static
bool
to
(
PyObject
*
obj
,
std
::
vector
<
std
::
vector
<
_Tp
>
>&
value
,
const
char
*
name
=
"<unknown>"
)
static
bool
to
(
PyObject
*
obj
,
std
::
vector
<
std
::
vector
<
_Tp
>
>&
value
,
const
ArgInfo
info
)
{
return
pyopencv_to_generic_vec
(
obj
,
value
,
name
);
return
pyopencv_to_generic_vec
(
obj
,
value
,
info
);
}
static
PyObject
*
from
(
const
std
::
vector
<
std
::
vector
<
_Tp
>
>&
value
)
...
...
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