@@ -200,7 +200,7 @@ class CV_EXPORTS_W Modality
200
200
/* *
201
201
* \brief Modality that computes quantized gradient orientations from a color image.
202
202
*/
203
- class CV_EXPORTS ColorGradient : public Modality
203
+ class CV_EXPORTS_W ColorGradient : public Modality
204
204
{
205
205
public:
206
206
/* *
@@ -218,14 +218,16 @@ class CV_EXPORTS ColorGradient : public Modality
218
218
*/
219
219
ColorGradient (float weak_threshold, size_t num_features, float strong_threshold);
220
220
221
+ CV_WRAP static Ptr<ColorGradient> create (float weak_threshold, size_t num_features, float strong_threshold);
222
+
221
223
virtual String name () const CV_OVERRIDE;
222
224
223
225
virtual void read (const FileNode& fn) CV_OVERRIDE;
224
226
virtual void write (FileStorage& fs) const CV_OVERRIDE;
225
227
226
- float weak_threshold;
227
- size_t num_features;
228
- float strong_threshold;
228
+ CV_PROP float weak_threshold;
229
+ CV_PROP size_t num_features;
230
+ CV_PROP float strong_threshold;
229
231
230
232
protected:
231
233
virtual Ptr<QuantizedPyramid> processImpl (const Mat& src,
@@ -235,7 +237,7 @@ class CV_EXPORTS ColorGradient : public Modality
235
237
/* *
236
238
* \brief Modality that computes quantized surface normals from a dense depth map.
237
239
*/
238
- class CV_EXPORTS DepthNormal : public Modality
240
+ class CV_EXPORTS_W DepthNormal : public Modality
239
241
{
240
242
public:
241
243
/* *
@@ -256,15 +258,18 @@ class CV_EXPORTS DepthNormal : public Modality
256
258
DepthNormal (int distance_threshold, int difference_threshold, size_t num_features,
257
259
int extract_threshold);
258
260
261
+ CV_WRAP static Ptr<DepthNormal> create (int distance_threshold, int difference_threshold,
262
+ size_t num_features, int extract_threshold);
263
+
259
264
virtual String name () const CV_OVERRIDE;
260
265
261
266
virtual void read (const FileNode& fn) CV_OVERRIDE;
262
267
virtual void write (FileStorage& fs) const CV_OVERRIDE;
263
268
264
- int distance_threshold;
265
- int difference_threshold;
266
- size_t num_features;
267
- int extract_threshold;
269
+ CV_PROP int distance_threshold;
270
+ CV_PROP int difference_threshold;
271
+ CV_PROP size_t num_features;
272
+ CV_PROP int extract_threshold;
268
273
269
274
protected:
270
275
virtual Ptr<QuantizedPyramid> processImpl (const Mat& src,
0 commit comments