Skip to content

Commit f86a703

Browse files
committed
Merge pull request #296 from berak/wrap_xfeatures2d
wrap DAISY and LATCH to scripting
2 parents 44e14b3 + bbee260 commit f86a703

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/xfeatures2d/include/opencv2/xfeatures2d.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ Note: the descriptor can be coupled with any keypoint extractor. The only demand
165165
Note: a complete example can be found under /samples/cpp/tutorial_code/xfeatures2D/latch_match.cpp
166166
167167
*/
168-
class CV_EXPORTS LATCH : public DescriptorExtractor
168+
class CV_EXPORTS_W LATCH : public Feature2D
169169
{
170170
public:
171-
static Ptr<LATCH> create(int bytes = 32, bool rotationInvariance = true, int half_ssd_size=3);
171+
CV_WRAP static Ptr<LATCH> create(int bytes = 32, bool rotationInvariance = true, int half_ssd_size=3);
172172
};
173173

174174
/** @brief Class implementing DAISY descriptor, described in @cite Tola10
@@ -187,14 +187,14 @@ DAISY::NRM_SIFT mean that descriptors are normalized for L2 norm equal to 1.0 bu
187187
@param use_orientation sample patterns using keypoints orientation, disabled by default.
188188
189189
*/
190-
class CV_EXPORTS DAISY : public DescriptorExtractor
190+
class CV_EXPORTS_W DAISY : public Feature2D
191191
{
192192
public:
193193
enum
194194
{
195195
NRM_NONE = 100, NRM_PARTIAL = 101, NRM_FULL = 102, NRM_SIFT = 103,
196196
};
197-
static Ptr<DAISY> create( float radius = 15, int q_radius = 3, int q_theta = 8,
197+
CV_WRAP static Ptr<DAISY> create( float radius = 15, int q_radius = 3, int q_theta = 8,
198198
int q_hist = 8, int norm = DAISY::NRM_NONE, InputArray H = noArray(),
199199
bool interpolation = true, bool use_orientation = false );
200200

0 commit comments

Comments
 (0)