OpenCV 4.13.0
開源計算機視覺庫 (Open Source Computer Vision)
正在載入...
正在搜尋...
未找到匹配項

詳細說明

類  cv::cuda::BackgroundSubtractorMOG
 基於高斯混合模型的背景/前景分割演算法更多...
 
類  cv::cuda::BackgroundSubtractorMOG2
 基於高斯混合模型的背景/前景分割演算法更多...
 

函式

Ptr< cuda::BackgroundSubtractorMOGcv::cuda::createBackgroundSubtractorMOG (int history=200, int nmixtures=5, double backgroundRatio=0.7, double noiseSigma=0)
 建立高斯混合背景減除器。
 
Ptr< cuda::BackgroundSubtractorMOG2cv::cuda::createBackgroundSubtractorMOG2 (int history=500, double varThreshold=16, bool detectShadows=true)
 建立 MOG2 背景減除器。
 

函式文件 (Function Documentation)

◆ createBackgroundSubtractorMOG()

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 表示自動值。

◆ createBackgroundSubtractorMOG2()

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。