Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
383a0061
Commit
383a0061
authored
Apr 11, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1606 from paroj:lmpy
parents
2aaa67a6
92fd42e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
linemod.hpp
modules/rgbd/include/opencv2/rgbd/linemod.hpp
+1
-1
pyopencv_linemod.hpp
modules/rgbd/misc/python/pyopencv_linemod.hpp
+14
-0
No files found.
modules/rgbd/include/opencv2/rgbd/linemod.hpp
View file @
383a0061
...
...
@@ -80,7 +80,7 @@ struct CV_EXPORTS_W_SIMPLE Template
CV_PROP
int
width
;
CV_PROP
int
height
;
CV_PROP
int
pyramid_level
;
std
::
vector
<
Feature
>
features
;
// FIXIT: CV_PROP
CV_PROP
std
::
vector
<
Feature
>
features
;
void
read
(
const
FileNode
&
fn
);
void
write
(
FileStorage
&
fs
)
const
;
...
...
modules/rgbd/misc/python/pyopencv_linemod.hpp
View file @
383a0061
...
...
@@ -27,6 +27,19 @@ template<> struct pyopencvVecConverter<linemod::Template>
}
};
template
<>
struct
pyopencvVecConverter
<
linemod
::
Feature
>
{
static
bool
to
(
PyObject
*
obj
,
std
::
vector
<
linemod
::
Feature
>&
value
,
const
ArgInfo
info
)
{
return
pyopencv_to_generic_vec
(
obj
,
value
,
info
);
}
static
PyObject
*
from
(
const
std
::
vector
<
linemod
::
Feature
>&
value
)
{
return
pyopencv_from_generic_vec
(
value
);
}
};
template
<>
struct
pyopencvVecConverter
<
Ptr
<
linemod
::
Modality
>
>
{
static
bool
to
(
PyObject
*
obj
,
std
::
vector
<
Ptr
<
linemod
::
Modality
>
>&
value
,
const
ArgInfo
info
)
...
...
@@ -42,5 +55,6 @@ template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
typedef
std
::
vector
<
linemod
::
Match
>
vector_Match
;
typedef
std
::
vector
<
linemod
::
Template
>
vector_Template
;
typedef
std
::
vector
<
linemod
::
Feature
>
vector_Feature
;
typedef
std
::
vector
<
Ptr
<
linemod
::
Modality
>
>
vector_Ptr_Modality
;
#endif
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