OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::cuda::BackgroundSubtractorMOG2 類參考抽象

基於高斯混合的背景/前景分割演算法更多...

#include <opencv2/cudabgsegm.hpp>

cv::cuda::BackgroundSubtractorMOG2 的協作圖

公共成員函式

virtual void apply (InputArray image, OutputArray fgmask, double learningRate, Stream &stream)=0
 
void getBackgroundImage (GpuMat &backgroundImage, Stream &stream)
 
virtual void getBackgroundImage (OutputArray backgroundImage, Stream &stream) const =0
 
- 繼承自 cv::BackgroundSubtractorMOG2 的公共成員函式
virtual void apply (InputArray image, OutputArray fgmask, double learningRate=-1) CV_OVERRIDE=0
 計算前景掩碼。
 
virtual double getBackgroundRatio () const =0
 返回演算法的“背景比率”引數。
 
virtual double getComplexityReductionThreshold () const =0
 返回複雜度降低閾值。
 
virtual bool getDetectShadows () const =0
 返回陰影檢測標誌。
 
virtual int getHistory () const =0
 返回影響背景模型的最後幀數。
 
virtual int getNMixtures () const =0
 返回背景模型中的高斯分量數量。
 
virtual double getShadowThreshold () const =0
 返回陰影閾值。
 
virtual int getShadowValue () const =0
 返回陰影值。
 
virtual double getVarInit () const =0
 返回每個高斯分量的初始方差。
 
virtual double getVarMax () const =0
 
virtual double getVarMin () const =0
 
virtual double getVarThreshold () const =0
 返回畫素-模型匹配的方差閾值。
 
virtual double getVarThresholdGen () const =0
 返回用於生成新混合分量的畫素-模型匹配的方差閾值。
 
virtual void setBackgroundRatio (double ratio)=0
 設定演算法的“背景比率”引數。
 
virtual void setComplexityReductionThreshold (double ct)=0
 設定複雜度降低閾值。
 
virtual void setDetectShadows (bool detectShadows)=0
 啟用或停用陰影檢測。
 
virtual void setHistory (int history)=0
 設定影響背景模型的最後幀數。
 
virtual void setNMixtures (int nmixtures)=0
 設定背景模型中的高斯分量數量。
 
virtual void setShadowThreshold (double threshold)=0
 設定陰影閾值。
 
virtual void setShadowValue (int value)=0
 設定陰影值。
 
virtual void setVarInit (double varInit)=0
 設定每個高斯分量的初始方差。
 
virtual void setVarMax (double varMax)=0
 
virtual void setVarMin (double varMin)=0
 
virtual void setVarThreshold (double varThreshold)=0
 設定畫素-模型匹配的方差閾值。
 
virtual void setVarThresholdGen (double varThresholdGen)=0
 設定用於生成新混合分量的畫素-模型匹配的方差閾值。
 
- 繼承自 cv::BackgroundSubtractor 的公共成員函式
virtual void getBackgroundImage (OutputArray backgroundImage) const =0
 計算背景影像。
 
- 繼承自 cv::Algorithm 的公共成員函式
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 清除演算法狀態。
 
virtual bool empty () const
 如果演算法為空(例如,在最開始或讀取不成功之後),則返回 true。
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 從檔案儲存中讀取演算法引數。
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 將演算法引數儲存到檔案儲存中。
 
void write (FileStorage &fs, const String &name) const
 

其他繼承成員

- 繼承自 cv::Algorithm 的靜態公共成員函式
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 從檔案中載入演算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 從字串載入演算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 從檔案節點讀取演算法。
 
- 繼承自 cv::Algorithm 的保護成員函式
void writeFormat (FileStorage &fs) const
 

詳細描述

基於高斯混合的背景/前景分割演算法

該類透過建立和維護背景模型來區分前景畫素和背景畫素。任何不符合此模型的畫素則被視為前景。該類實現了[327]中描述的演算法。

另請參見
BackgroundSubtractorMOG2

成員函式文件

◆ apply()

virtual void cv::cuda::BackgroundSubtractorMOG2::apply ( InputArray image,
OutputArray fgmask,
double learningRate,
Stream & stream )
純虛擬函式

◆ getBackgroundImage() [1/2]

void cv::cuda::BackgroundSubtractorMOG2::getBackgroundImage ( GpuMat & backgroundImage,
Stream & stream )
inline

◆ getBackgroundImage() [2/2]

virtual void cv::cuda::BackgroundSubtractorMOG2::getBackgroundImage ( OutputArray backgroundImage,
Stream & stream ) const
純虛擬函式

此類的文件生成自以下檔案