OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

ガウス混合モデルに基づく背景/前景セグメンテーション Algorithmさらに詳しく...

#include <opencv2/cudabgsegm.hpp>

Collaboration diagram for cv::cuda::BackgroundSubtractorMOG2:

公開メンバ関数

virtual void apply (InputArray image, InputArray knownForegroundMask, OutputArray fgmask, double learningRate, Stream &stream)=0
 
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
 
- Public Member Functions inherited from cv::BackgroundSubtractorMOG2
virtual void apply (InputArray image, InputArray knownForegroundMask, OutputArray fgmask, double learningRate=-1) CV_OVERRIDE=0
 前景マスクを計算し、評価時に既知の前景をスキップする。
 
virtual void apply (InputArray image, OutputArray fgmask, double learningRate=-1) CV_OVERRIDE=0
 前景マスクを計算する。
 
virtual double getBackgroundRatio () const =0
 アルゴリズムの「背景比率(background ratio)」パラメータを返す。
 
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
 アルゴリズムの「背景比率(background ratio)」パラメータを設定する。
 
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
 新しい混合成分の生成に用いる、ピクセルとモデルのマッチングのための分散しきい値を設定する。
 
- Public Member Functions inherited from cv::BackgroundSubtractor
virtual void getBackgroundImage (OutputArray backgroundImage) const =0
 背景画像を計算する。
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 アルゴリズムの状態をクリアする。
 
virtual bool empty () const
 Algorithm が空の場合(たとえば開始直後や読み込みに失敗した後)に 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
 

Additional Inherited Members

- Static Public Member Functions inherited from 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)
 ファイルノードからアルゴリズムを読み込む。
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

詳細説明

ガウス混合モデルに基づく背景/前景セグメンテーション Algorithm

このクラスは、背景のモデルを構築・維持することで前景ピクセルと背景ピクセルを区別する。このモデルに適合しないピクセルは前景とみなされる。本クラスは [330] で説明されているアルゴリズムを実装している。

参照
BackgroundSubtractorMOG2

メンバ関数詳解

◆ apply() [1/2]

virtual void cv::cuda::BackgroundSubtractorMOG2::apply ( InputArray image,
InputArray knownForegroundMask,
OutputArray fgmask,
double learningRate,
Stream & stream )
pure virtual

◆ apply() [2/2]

virtual void cv::cuda::BackgroundSubtractorMOG2::apply ( InputArray image,
OutputArray fgmask,
double learningRate,
Stream & stream )
pure virtual

◆ 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
pure virtual

このクラス詳解は次のファイルから抽出されました: