![]() |
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。 |