org.opencv.video
public class BackgroundSubtractorMOG extends BackgroundSubtractor
Gaussian Mixture-based Background/Foreground Segmentation Algorithm.
The class implements the algorithm described in P. KadewTraKuPong and R. Bowden, *An improved adaptive background mixture model for real-time tracking with shadow detection*, Proc. 2nd European Workshop on Advanced Video-Based Surveillance Systems, 2001: http://personal.ee.surrey.ac.uk/Personal/R.Bowden/publications/avbs01/avbs01.pdf
| Constructor and Description |
|---|
BackgroundSubtractorMOG()
The constructors.
|
BackgroundSubtractorMOG(int history,
int nmixtures,
double backgroundRatio)
The constructors.
|
BackgroundSubtractorMOG(int history,
int nmixtures,
double backgroundRatio,
double noiseSigma)
The constructors.
|
public BackgroundSubtractorMOG()
The constructors.
Default constructor sets all parameters to default values.
public BackgroundSubtractorMOG(int history,
int nmixtures,
double backgroundRatio)
The constructors.
Default constructor sets all parameters to default values.
history - Length of the history.nmixtures - Number of Gaussian mixtures.backgroundRatio - Background ratio.public BackgroundSubtractorMOG(int history,
int nmixtures,
double backgroundRatio,
double noiseSigma)
The constructors.
Default constructor sets all parameters to default values.
history - Length of the history.nmixtures - Number of Gaussian mixtures.backgroundRatio - Background ratio.noiseSigma - Noise strength.