Skip to content

Commit 368da7f

Browse files
committed
declared constructors and destructors of RgbdPlane
1 parent 91859e8 commit 368da7f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

modules/rgbd/include/opencv2/rgbd.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,26 @@ namespace rgbd
379379
{
380380
}
381381

382+
/** Constructor
383+
* @param block_size The size of the blocks to look at for a stable MSE
384+
* @param min_size The minimum size of a cluster to be considered a plane
385+
* @param threshold The maximum distance of a point from a plane to belong to it (in meters)
386+
* @param sensor_error_a_ coefficient of the sensor error with respect to the. 0 by default, 0.0075 for a Kinect
387+
* @param sensor_error_b_ coefficient of the sensor error with respect to the. 0 by default
388+
* @param sensor_error_c_ coefficient of the sensor error with respect to the. 0 by default
389+
* @param method The method to use to compute the planes, by default RGBD_PLANE_METHOD_DEFAULT
390+
*/
391+
RgbdPlane(int block_size, int min_size, double threshold, double sensor_error_a_ = 0,
392+
double sensor_error_b_ = 0, double sensor_error_c_ = 0, int method =
393+
RgbdPlane::RGBD_PLANE_METHOD_DEFAULT);
394+
395+
~RgbdPlane();
396+
397+
CV_WRAP static Ptr<RgbdPlane> create(int block_size, int min_size, double threshold,
398+
double sensor_error_a_ = 0, double sensor_error_b_ = 0,
399+
double sensor_error_c_ = 0,
400+
int method = RgbdPlane::RGBD_PLANE_METHOD_DEFAULT);
401+
382402
/** Find The planes in a depth image
383403
* @param points3d the 3d points organized like the depth image: rows x cols with 3 channels
384404
* @param normals the normals for every point in the depth image

0 commit comments

Comments
 (0)