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