#include <opencv2/rgbd/depth.hpp>
|
| RgbdPlane (int method, int block_size, int min_size, double threshold, double sensor_error_a=0, double sensor_error_b=0, double sensor_error_c=0) |
|
| RgbdPlane (int method=RgbdPlane::RGBD_PLANE_METHOD_DEFAULT) |
|
| ~RgbdPlane () |
|
int | getBlockSize () const |
|
int | getMethod () const |
|
int | getMinSize () const |
|
double | getSensorErrorA () const |
|
double | getSensorErrorB () const |
|
double | getSensorErrorC () const |
|
double | getThreshold () const |
|
void | operator() (InputArray points3d, InputArray normals, OutputArray mask, OutputArray plane_coefficients) |
|
void | operator() (InputArray points3d, OutputArray mask, OutputArray plane_coefficients) |
|
void | setBlockSize (int val) |
|
void | setMethod (int val) |
|
void | setMinSize (int val) |
|
void | setSensorErrorA (double val) |
|
void | setSensorErrorB (double val) |
|
void | setSensorErrorC (double val) |
|
void | setThreshold (double val) |
|
| Algorithm () |
|
virtual | ~Algorithm () |
|
virtual void | clear () |
| 清除算法状态。
|
|
virtual bool | empty () const |
| 如果 Algorithm 为空(例如,在开始时或读取失败后),则返回 true。
|
|
virtual String | getDefaultName () const |
|
virtual void | read (const FileNode &fn) |
| 从文件存储中读取算法参数。
|
|
virtual void | save (const String &filename) const |
|
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
|
virtual void | write (FileStorage &fs) const |
| 将算法参数存储在文件存储中。
|
|
void | write (FileStorage &fs, const String &name) const |
|
◆ RGBD_PLANE_METHOD
枚举器 |
---|
RGBD_PLANE_METHOD_DEFAULT | |
◆ RgbdPlane() [1/2]
◆ RgbdPlane() [2/2]
cv::rgbd::RgbdPlane::RgbdPlane |
( |
int | method, |
|
|
int | block_size, |
|
|
int | min_size, |
|
|
double | threshold, |
|
|
double | sensor_error_a = 0, |
|
|
double | sensor_error_b = 0, |
|
|
double | sensor_error_c = 0 ) |
构造函数
- 参数
-
block_size | 用于获得稳定均方误差的块大小 |
min_size | 被认为是平面的最小簇大小 |
threshold | 点到平面属于该平面的最大距离(以米为单位) |
sensor_error_a | 传感器误差系数。默认值为 0,Kinect 为 0.0075 |
sensor_error_b | 传感器误差系数。默认值为 0 |
sensor_error_c | 传感器误差系数。默认值为 0 |
method | 用于计算平面的方法。 |
◆ ~RgbdPlane()
cv::rgbd::RgbdPlane::~RgbdPlane |
( |
| ) |
|
◆ create()
static Ptr< RgbdPlane > cv::rgbd::RgbdPlane::create |
( |
int | method, |
|
|
int | block_size, |
|
|
int | min_size, |
|
|
double | threshold, |
|
|
double | sensor_error_a = 0, |
|
|
double | sensor_error_b = 0, |
|
|
double | sensor_error_c = 0 ) |
|
静态 |
Python |
---|
| cv.rgbd.RgbdPlane.create( | method, block_size, min_size, threshold[, sensor_error_a[, sensor_error_b[, sensor_error_c]]] | ) -> | 返回值 |
| cv.rgbd.RgbdPlane_create( | method, block_size, min_size, threshold[, sensor_error_a[, sensor_error_b[, sensor_error_c]]] | ) -> | 返回值 |
◆ getBlockSize()
int cv::rgbd::RgbdPlane::getBlockSize |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getBlockSize( | | ) -> | 返回值 |
◆ getMethod()
int cv::rgbd::RgbdPlane::getMethod |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getMethod( | | ) -> | 返回值 |
◆ getMinSize()
int cv::rgbd::RgbdPlane::getMinSize |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getMinSize( | | ) -> | 返回值 |
◆ getSensorErrorA()
double cv::rgbd::RgbdPlane::getSensorErrorA |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getSensorErrorA( | | ) -> | 返回值 |
◆ getSensorErrorB()
double cv::rgbd::RgbdPlane::getSensorErrorB |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getSensorErrorB( | | ) -> | 返回值 |
◆ getSensorErrorC()
double cv::rgbd::RgbdPlane::getSensorErrorC |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getSensorErrorC( | | ) -> | 返回值 |
◆ getThreshold()
double cv::rgbd::RgbdPlane::getThreshold |
( |
| ) |
const |
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.getThreshold( | | ) -> | 返回值 |
◆ operator()() [1/2]
void cv::rgbd::RgbdPlane::operator() |
( |
输入数组 | points3d, |
|
|
输入数组 | normals, |
|
|
输出数组 | mask, |
|
|
输出数组 | plane_coefficients ) |
查找深度图像中的平面
- 参数
-
points3d | 像深度图像一样组织的 3D 点:行 x 列,具有 3 个通道 |
normals | 深度图像中每个点的法线 |
mask | 每个像素都用其所属的平面标记的图像,如果它不属于任何平面,则为 255 |
plane_coefficients | 相应平面的系数 (a,b,c,d),使得 ax+by+cz+d=0,norm(a,b,c)=1 且 c < 0(以便法线指向相机) |
◆ operator()() [2/2]
void cv::rgbd::RgbdPlane::operator() |
( |
输入数组 | points3d, |
|
|
输出数组 | mask, |
|
|
输出数组 | plane_coefficients ) |
查找深度图像中的平面,但不进行法线检查,速度更快但精度较低
- 参数
-
points3d | 像深度图像一样组织的 3D 点:行 x 列,具有 3 个通道 |
mask | 每个像素都用其所属的平面标记的图像,如果它不属于任何平面,则为 255 |
plane_coefficients | 相应平面的系数 (a,b,c,d),使得 ax+by+cz+d=0 |
◆ setBlockSize()
void cv::rgbd::RgbdPlane::setBlockSize |
( |
int | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setBlockSize( | val | ) -> | 无 |
◆ setMethod()
void cv::rgbd::RgbdPlane::setMethod |
( |
int | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setMethod( | val | ) -> | 无 |
◆ setMinSize()
void cv::rgbd::RgbdPlane::setMinSize |
( |
int | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setMinSize( | val | ) -> | 无 |
◆ setSensorErrorA()
void cv::rgbd::RgbdPlane::setSensorErrorA |
( |
double | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setSensorErrorA( | val | ) -> | 无 |
◆ setSensorErrorB()
void cv::rgbd::RgbdPlane::setSensorErrorB |
( |
double | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setSensorErrorB( | val | ) -> | 无 |
◆ setSensorErrorC()
void cv::rgbd::RgbdPlane::setSensorErrorC |
( |
double | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setSensorErrorC( | val | ) -> | 无 |
◆ setThreshold()
void cv::rgbd::RgbdPlane::setThreshold |
( |
double | val | ) |
|
|
inline |
Python |
---|
| cv.rgbd.RgbdPlane.setThreshold( | val | ) -> | 无 |
此类的文档是从以下文件生成的