pub trait CUDA_BackgroundSubtractorMOGConst: BackgroundSubtractorConst {
    fn as_raw_CUDA_BackgroundSubtractorMOG(&self) -> *const c_void;

    fn get_background_image(
        &self,
        background_image: &mut dyn ToOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... } fn get_history(&self) -> Result<i32> { ... } fn get_n_mixtures(&self) -> Result<i32> { ... } fn get_background_ratio(&self) -> Result<f64> { ... } fn get_noise_sigma(&self) -> Result<f64> { ... } }
Expand description

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 MOG2001 .

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

Required Methods

Provided Methods

Implementors