![]() |
OpenCV 4.10.0
开源计算机视觉
|
类 | |
| 类 | cv::cuda::BackgroundSubtractorMOG |
| 基于高斯混合模型的背景/前景分割 算法。 更多... | |
| 类 | cv::cuda::BackgroundSubtractorMOG2 |
| 基于高斯混合模型的背景/前景分割 算法。 更多... | |
函数 | |
| Ptr< cuda::BackgroundSubtractorMOG > | cv::cuda::createBackgroundSubtractorMOG (int history=200, int nmixtures=5, double backgroundRatio=0.7, double noiseSigma=0) |
| 创建高斯混合背景减除器。 | |
| Ptr< cuda::BackgroundSubtractorMOG2 > | cv::cuda::createBackgroundSubtractorMOG2 (int history=500, double varThreshold=16, bool detectShadows=true) |
| 创建 MOG2 背景减除器。 | |
| Ptr< cuda::BackgroundSubtractorMOG > cv::cuda::createBackgroundSubtractorMOG | ( | int | history = 200, |
| int | nmixtures = 5, |
||
| double | backgroundRatio = 0.7, |
||
| double | noiseSigma = 0 |
||
| ) |
#include <opencv2/cudabgsegm.hpp>
创建高斯混合背景减除器。
| history | 历史长度。 |
| nmixtures | 高斯混合模型的数量。 |
| backgroundRatio | 背景比例。 |
| noiseSigma | 噪声强度(亮度或每个颜色通道的标准差)。0 表示某个自动值。 |
| Ptr< cuda::BackgroundSubtractorMOG2 > cv::cuda::createBackgroundSubtractorMOG2 | ( | int | history = 500, |
| double | varThreshold = 16, |
||
| bool | detectShadows = true |
||
| ) |
#include <opencv2/cudabgsegm.hpp>
创建 MOG2 背景减除器。
| history | 历史长度。 |
| varThreshold | 像素与模型之间的平方马氏距离阈值,用于决定像素是否能被背景模型很好地描述。此参数不影响背景更新。 |
| detectShadows | 如果为 true,算法将检测阴影并标记它们。它会稍微降低速度,因此,如果您不需要此功能,请将参数设置为 false。 |
1.9.8 为 OpenCV 生成于 2024 年 6 月 2 日星期日 21:52:15