File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ struct CV_EXPORTS_W_SIMPLE Template
80
80
CV_PROP int width;
81
81
CV_PROP int height;
82
82
CV_PROP int pyramid_level;
83
- std::vector<Feature> features; // FIXIT: CV_PROP
83
+ CV_PROP std::vector<Feature> features;
84
84
85
85
void read (const FileNode& fn);
86
86
void write (FileStorage& fs) const ;
Original file line number Diff line number Diff line change @@ -27,6 +27,19 @@ template<> struct pyopencvVecConverter<linemod::Template>
27
27
}
28
28
};
29
29
30
+ template <> struct pyopencvVecConverter <linemod::Feature>
31
+ {
32
+ static bool to (PyObject* obj, std::vector<linemod::Feature>& value, const ArgInfo info)
33
+ {
34
+ return pyopencv_to_generic_vec (obj, value, info);
35
+ }
36
+
37
+ static PyObject* from (const std::vector<linemod::Feature>& value)
38
+ {
39
+ return pyopencv_from_generic_vec (value);
40
+ }
41
+ };
42
+
30
43
template <> struct pyopencvVecConverter <Ptr<linemod::Modality> >
31
44
{
32
45
static bool to (PyObject* obj, std::vector<Ptr<linemod::Modality> >& value, const ArgInfo info)
@@ -42,5 +55,6 @@ template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
42
55
43
56
typedef std::vector<linemod::Match> vector_Match;
44
57
typedef std::vector<linemod::Template> vector_Template;
58
+ typedef std::vector<linemod::Feature> vector_Feature;
45
59
typedef std::vector<Ptr<linemod::Modality> > vector_Ptr_Modality;
46
60
#endif
You can’t perform that action at this time.
0 commit comments