File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed
include/opencv2/structured_light Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
set (the_description "Structured Light API" )
2
- ocv_define_module (structured_light opencv_core opencv_calib3d opencv_imgproc opencv_highgui opencv_features2d opencv_rgbd OPTIONAL opencv_viz )
2
+ ocv_define_module (structured_light opencv_core opencv_calib3d opencv_imgproc opencv_highgui opencv_features2d opencv_rgbd OPTIONAL opencv_viz WRAP python java )
Original file line number Diff line number Diff line change 43
43
#define __OPENCV_GRAY_CODE_PATTERN_HPP__
44
44
45
45
#include " opencv2/core.hpp"
46
+ #include " opencv2/structured_light/structured_light.hpp"
46
47
47
48
namespace cv {
48
49
namespace structured_light {
@@ -72,22 +73,22 @@ class CV_EXPORTS_W GrayCodePattern : public StructuredLightPattern
72
73
* @param width Projector's width. Default value is 1024.
73
74
* @param height Projector's height. Default value is 768.
74
75
*/
75
- struct CV_EXPORTS_W_SIMPLE Params
76
+ struct CV_EXPORTS Params
76
77
{
77
- CV_WRAP
78
78
Params ();
79
- CV_PROP_RW
80
79
int width;
81
- CV_PROP_RW
82
80
int height;
83
81
};
84
82
85
83
/* * @brief Constructor
86
84
@param parameters GrayCodePattern parameters GrayCodePattern::Params: the width and the height of the projector.
87
85
*/
88
- CV_WRAP
89
86
static Ptr<GrayCodePattern> create ( const GrayCodePattern::Params ¶meters = GrayCodePattern::Params() );
90
87
88
+ // alias for scripting
89
+ CV_WRAP
90
+ static Ptr<GrayCodePattern> create ( int width, int height );
91
+
91
92
/* * @brief Get the number of pattern images needed for the graycode pattern.
92
93
*
93
94
* @return The number of pattern images needed for the graycode pattern.
Original file line number Diff line number Diff line change @@ -471,5 +471,15 @@ Ptr<GrayCodePattern> GrayCodePattern::create( const GrayCodePattern::Params& par
471
471
return makePtr<GrayCodePattern_Impl>( params );
472
472
}
473
473
474
+ // Creates the GrayCodePattern instance
475
+ // alias for scripting
476
+ Ptr<GrayCodePattern> GrayCodePattern::create ( int width, int height )
477
+ {
478
+ Params params;
479
+ params.width = width;
480
+ params.height = height;
481
+ return makePtr<GrayCodePattern_Impl>( params );
482
+ }
483
+
474
484
}
475
485
}
You can’t perform that action at this time.
0 commit comments