Skip to content

Commit c9fb391

Browse files
committed
Merge pull request #234 from berak/wrap_xfeatures2d
wrapping remaining xfeature2d classes to scripting
2 parents ea682d6 + c17dbb4 commit c9fb391

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/xfeatures2d/include/opencv2/xfeatures2d.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ They are competitive alternatives to existing keypoints in particular for embedd
7676
- An example on how to use the FREAK descriptor can be found at
7777
opencv_source_code/samples/cpp/freak_demo.cpp
7878
*/
79-
class CV_EXPORTS FREAK : public Feature2D
79+
class CV_EXPORTS_W FREAK : public Feature2D
8080
{
8181
public:
8282

@@ -92,7 +92,7 @@ class CV_EXPORTS FREAK : public Feature2D
9292
@param nOctaves Number of octaves covered by the detected keypoints.
9393
@param selectedPairs (Optional) user defined selected pairs indexes,
9494
*/
95-
static Ptr<FREAK> create(bool orientationNormalized = true,
95+
CV_WRAP static Ptr<FREAK> create(bool orientationNormalized = true,
9696
bool scaleNormalized = true,
9797
float patternScale = 22.0f,
9898
int nOctaves = 4,
@@ -102,11 +102,11 @@ class CV_EXPORTS FREAK : public Feature2D
102102

103103
/** @brief The class implements the keypoint detector introduced by @cite Agrawal08, synonym of StarDetector. :
104104
*/
105-
class CV_EXPORTS StarDetector : public FeatureDetector
105+
class CV_EXPORTS_W StarDetector : public Feature2D
106106
{
107107
public:
108108
//! the full constructor
109-
static Ptr<StarDetector> create(int maxSize=45, int responseThreshold=30,
109+
CV_WRAP static Ptr<StarDetector> create(int maxSize=45, int responseThreshold=30,
110110
int lineThresholdProjected=10,
111111
int lineThresholdBinarized=8,
112112
int suppressNonmaxSize=5);
@@ -123,25 +123,25 @@ class CV_EXPORTS StarDetector : public FeatureDetector
123123
opencv_source_code/samples/cpp/brief_match_test.cpp
124124
125125
*/
126-
class CV_EXPORTS BriefDescriptorExtractor : public DescriptorExtractor
126+
class CV_EXPORTS_W BriefDescriptorExtractor : public Feature2D
127127
{
128128
public:
129-
static Ptr<BriefDescriptorExtractor> create( int bytes = 32 );
129+
CV_WRAP static Ptr<BriefDescriptorExtractor> create( int bytes = 32 );
130130
};
131131

132132
/** @brief Class implementing the locally uniform comparison image descriptor, described in @cite LUCID
133133
134134
An image descriptor that can be computed very fast, while being
135135
about as robust as, for example, SURF or BRIEF.
136136
*/
137-
class CV_EXPORTS LUCID : public DescriptorExtractor
137+
class CV_EXPORTS_W LUCID : public Feature2D
138138
{
139139
public:
140140
/**
141141
* @param lucid_kernel kernel for descriptor construction, where 1=3x3, 2=5x5, 3=7x7 and so forth
142142
* @param blur_kernel kernel for blurring image prior to descriptor construction, where 1=3x3, 2=5x5, 3=7x7 and so forth
143143
*/
144-
static Ptr<LUCID> create(const int lucid_kernel, const int blur_kernel);
144+
CV_WRAP static Ptr<LUCID> create(const int lucid_kernel, const int blur_kernel);
145145
};
146146

147147

0 commit comments

Comments
 (0)