![]() |
OpenCV 4.13.0
开源计算机视觉库 (Open Source Computer Vision)
|
类 | |
| 类 | 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。 |