过滤视差图中的小噪点斑块(斑点)。更多…
#include <opencv2/stereo.hpp>
过滤视差图中的小噪点斑块(斑点)。
- 参数
-
| img | 输入的16位有符号视差图像 |
| newVal | 用于去除斑点的视差值 |
| maxSpeckleSize | 要将其视为斑点的最大斑点大小。较大的斑块不受算法影响 |
| maxDiff | 相邻视差像素之间的最大差异,将它们放入同一个斑块中。请注意,由于StereoBM、StereoSGBM以及其他算法可能返回一个定点视差图,其中视差值乘以 16,因此在指定此参数值时应考虑此比例因子。 |
| buf | 可选的临时缓冲区,用于避免函数内的内存分配。 |
立体匹配算法的基类。
◆ 匿名枚举
◆ compute()
计算指定立体图像对的视差图。
- 参数
-
| left | 左侧8位单通道图像。 |
| right | 右侧图像,大小和类型与左侧图像相同。 |
| 视差图 | 输出视差图。它与输入图像大小相同。某些算法,例如StereoBM或StereoSGBM计算16位定点视差图(其中每个视差值具有4位小数),而其他算法输出32位浮点视差图。 |
◆ getBlockSize()
| virtual int cv::stereo::StereoMatcher::getBlockSize |
( |
| ) |
const |
|
纯虚函数 |
◆ getDisp12MaxDiff()
| virtual int cv::stereo::StereoMatcher::getDisp12MaxDiff |
( |
| ) |
const |
|
纯虚函数 |
◆ getMinDisparity()
| virtual int cv::stereo::StereoMatcher::getMinDisparity |
( |
| ) |
const |
|
纯虚函数 |
◆ getNumDisparities()
| virtual int cv::stereo::StereoMatcher::getNumDisparities |
( |
| ) |
const |
|
纯虚函数 |
◆ getSpeckleRange()
| virtual int cv::stereo::StereoMatcher::getSpeckleRange |
( |
| ) |
const |
|
纯虚函数 |
◆ getSpeckleWindowSize()
| virtual int cv::stereo::StereoMatcher::getSpeckleWindowSize |
( |
| ) |
const |
|
纯虚函数 |
◆ setBlockSize()
| virtual void cv::stereo::StereoMatcher::setBlockSize |
( |
int | blockSize | ) |
|
|
纯虚函数 |
◆ setDisp12MaxDiff()
| virtual void cv::stereo::StereoMatcher::setDisp12MaxDiff |
( |
int | disp12MaxDiff | ) |
|
|
纯虚函数 |
◆ setMinDisparity()
| virtual void cv::stereo::StereoMatcher::setMinDisparity |
( |
int | minDisparity | ) |
|
|
纯虚函数 |
◆ setNumDisparities()
| virtual void cv::stereo::StereoMatcher::setNumDisparities |
( |
int | numDisparities | ) |
|
|
纯虚函数 |
◆ setSpeckleRange()
| virtual void cv::stereo::StereoMatcher::setSpeckleRange |
( |
int | speckleRange | ) |
|
|
纯虚函数 |
◆ setSpeckleWindowSize()
| virtual void cv::stereo::StereoMatcher::setSpeckleWindowSize |
( |
int | speckleWindowSize | ) |
|
|
纯虚函数 |
此类的文档是从以下文件生成的