#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 | 方法, |
|
|
int | block_size, |
|
|
int | min_size, |
|
|
double | RANSAC引數。它是點到畫素中對極線的最大距離,超過此距離的點將被視為異常值,不用於計算最終的基本矩陣。它可以設定為1-3左右,具體取決於點定位的精度、影像解析度和影像噪聲。, |
|
|
double | sensor_error_a = 0, |
|
|
double | sensor_error_b = 0, |
|
|
double | sensor_error_c = 0 ) |
建構函式
- 引數
-
| block_size | 用於檢視穩定 MSE 的塊的大小 |
| min_size | 被視為平面的簇的最小大小 |
| RANSAC引數。它是點到畫素中對極線的最大距離,超過此距離的點將被視為異常值,不用於計算最終的基本矩陣。它可以設定為1-3左右,具體取決於點定位的精度、影像解析度和影像噪聲。 | 一個點屬於一個平面的最大距離(以米為單位) |
| sensor_error_a | 感測器誤差的係數。預設為 0,Kinect 為 0.0075 |
| sensor_error_b | 感測器誤差的係數。預設為 0 |
| sensor_error_c | 感測器誤差的係數。預設為 0 |
| 方法 | 用於計算平面的方法。 |
◆ ~RgbdPlane()
| cv::rgbd::RgbdPlane::~RgbdPlane |
( |
| ) |
|
◆ create()
| static Ptr< RgbdPlane > cv::rgbd::RgbdPlane::create |
( |
int | 方法, |
|
|
int | block_size, |
|
|
int | min_size, |
|
|
double | RANSAC引數。它是點到畫素中對極線的最大距離,超過此距離的點將被視為異常值,不用於計算最終的基本矩陣。它可以設定為1-3左右,具體取決於點定位的精度、影像解析度和影像噪聲。, |
|
|
double | sensor_error_a = 0, |
|
|
double | sensor_error_b = 0, |
|
|
double | sensor_error_c = 0 ) |
|
static |
| Python |
|---|
| cv.rgbd.RgbdPlane.create( | method, block_size, min_size, threshold[, sensor_error_a[, sensor_error_b[, sensor_error_c]]] | ) -> | retval |
| cv.rgbd.RgbdPlane_create( | method, block_size, min_size, threshold[, sensor_error_a[, sensor_error_b[, sensor_error_c]]] | ) -> | retval |
◆ getBlockSize()
| int cv::rgbd::RgbdPlane::getBlockSize |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getBlockSize( | | ) -> | retval |
◆ getMethod()
| int cv::rgbd::RgbdPlane::getMethod |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getMethod( | | ) -> | retval |
◆ getMinSize()
| int cv::rgbd::RgbdPlane::getMinSize |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getMinSize( | | ) -> | retval |
◆ getSensorErrorA()
| double cv::rgbd::RgbdPlane::getSensorErrorA |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getSensorErrorA( | | ) -> | retval |
◆ getSensorErrorB()
| double cv::rgbd::RgbdPlane::getSensorErrorB |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getSensorErrorB( | | ) -> | retval |
◆ getSensorErrorC()
| double cv::rgbd::RgbdPlane::getSensorErrorC |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getSensorErrorC( | | ) -> | retval |
◆ getThreshold()
| double cv::rgbd::RgbdPlane::getThreshold |
( |
| ) |
const |
|
inline |
| Python |
|---|
| cv.rgbd.RgbdPlane.getThreshold( | | ) -> | retval |
◆ operator()() [1/2]
在深度影像中查詢平面
- 引數
-
| 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]
在深度影像中查詢平面,但不進行法線檢查,這更快但不太準確
- 引數
-
| 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 | ) -> | 無 |
此類文件由以下檔案生成