@@ -163,7 +163,7 @@ class CV_EXPORTS_W Modality
163
163
/* *
164
164
* \brief Modality that computes quantized gradient orientations from a color image.
165
165
*/
166
- class CV_EXPORTS ColorGradient : public Modality
166
+ class CV_EXPORTS_W ColorGradient : public Modality
167
167
{
168
168
public:
169
169
/* *
@@ -181,14 +181,16 @@ class CV_EXPORTS ColorGradient : public Modality
181
181
*/
182
182
ColorGradient (float weak_threshold, size_t num_features, float strong_threshold);
183
183
184
+ CV_WRAP static Ptr<ColorGradient> create (float weak_threshold, size_t num_features, float strong_threshold);
185
+
184
186
virtual String name () const CV_OVERRIDE;
185
187
186
188
virtual void read (const FileNode& fn) CV_OVERRIDE;
187
189
virtual void write (FileStorage& fs) const CV_OVERRIDE;
188
190
189
- float weak_threshold;
190
- size_t num_features;
191
- float strong_threshold;
191
+ CV_PROP float weak_threshold;
192
+ CV_PROP size_t num_features;
193
+ CV_PROP float strong_threshold;
192
194
193
195
protected:
194
196
virtual Ptr<QuantizedPyramid> processImpl (const Mat& src,
@@ -198,7 +200,7 @@ class CV_EXPORTS ColorGradient : public Modality
198
200
/* *
199
201
* \brief Modality that computes quantized surface normals from a dense depth map.
200
202
*/
201
- class CV_EXPORTS DepthNormal : public Modality
203
+ class CV_EXPORTS_W DepthNormal : public Modality
202
204
{
203
205
public:
204
206
/* *
@@ -219,15 +221,18 @@ class CV_EXPORTS DepthNormal : public Modality
219
221
DepthNormal (int distance_threshold, int difference_threshold, size_t num_features,
220
222
int extract_threshold);
221
223
224
+ CV_WRAP static Ptr<DepthNormal> create (int distance_threshold, int difference_threshold,
225
+ size_t num_features, int extract_threshold);
226
+
222
227
virtual String name () const CV_OVERRIDE;
223
228
224
229
virtual void read (const FileNode& fn) CV_OVERRIDE;
225
230
virtual void write (FileStorage& fs) const CV_OVERRIDE;
226
231
227
- int distance_threshold;
228
- int difference_threshold;
229
- size_t num_features;
230
- int extract_threshold;
232
+ CV_PROP int distance_threshold;
233
+ CV_PROP int difference_threshold;
234
+ CV_PROP size_t num_features;
235
+ CV_PROP int extract_threshold;
231
236
232
237
protected:
233
238
virtual Ptr<QuantizedPyramid> processImpl (const Mat& src,
0 commit comments