Gaussian Mixture-based Background/Foreground Segmentation Algorithm.
More...
#include <opencv2/cudabgsegm.hpp>
Gaussian Mixture-based Background/Foreground Segmentation Algorithm.
The class discriminates between foreground and background pixels by building and maintaining a model of the background. Any pixel which does not fit this model is then deemed to be foreground. The class implements algorithm described in [141] .
- See also
- BackgroundSubtractorMOG
- Note
- An example on gaussian mixture based background/foreground segmantation can be found at opencv_source_code/samples/gpu/bgfg_segm.cpp
◆ apply() [1/2]
◆ apply() [2/2]
Computes a foreground mask.
- Parameters
-
| image | Next video frame. |
| fgmask | The output foreground mask as an 8-bit binary image. |
| learningRate | The value between 0 and 1 that indicates how fast the background model is learnt. Negative parameter value makes the algorithm to use some automatically chosen learning rate. 0 means that the background model is not updated at all, 1 means that the background model is completely reinitialized from the last frame. |
Implements cv::BackgroundSubtractor.
◆ getBackgroundImage() [1/3]
| void cv::cuda::BackgroundSubtractorMOG::getBackgroundImage |
( |
GpuMat & | backgroundImage, |
|
|
Stream & | stream ) |
|
inline |
◆ getBackgroundImage() [2/3]
Computes a background image.
- Parameters
-
| backgroundImage | The output background image. |
- Note
- Sometimes the background image can be very blurry, as it contain the average background statistics.
Implements cv::BackgroundSubtractor.
◆ getBackgroundImage() [3/3]
| virtual void cv::cuda::BackgroundSubtractorMOG::getBackgroundImage |
( |
OutputArray | backgroundImage, |
|
|
Stream & | stream ) const |
|
pure virtual |
◆ getBackgroundRatio()
| virtual double cv::cuda::BackgroundSubtractorMOG::getBackgroundRatio |
( |
| ) |
const |
|
pure virtual |
◆ getHistory()
| virtual int cv::cuda::BackgroundSubtractorMOG::getHistory |
( |
| ) |
const |
|
pure virtual |
◆ getNMixtures()
| virtual int cv::cuda::BackgroundSubtractorMOG::getNMixtures |
( |
| ) |
const |
|
pure virtual |
◆ getNoiseSigma()
| virtual double cv::cuda::BackgroundSubtractorMOG::getNoiseSigma |
( |
| ) |
const |
|
pure virtual |
◆ setBackgroundRatio()
| virtual void cv::cuda::BackgroundSubtractorMOG::setBackgroundRatio |
( |
double | backgroundRatio | ) |
|
|
pure virtual |
◆ setHistory()
| virtual void cv::cuda::BackgroundSubtractorMOG::setHistory |
( |
int | nframes | ) |
|
|
pure virtual |
◆ setNMixtures()
| virtual void cv::cuda::BackgroundSubtractorMOG::setNMixtures |
( |
int | nmix | ) |
|
|
pure virtual |
◆ setNoiseSigma()
| virtual void cv::cuda::BackgroundSubtractorMOG::setNoiseSigma |
( |
double | noiseSigma | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: