pub trait CUDA_BackgroundSubtractorMOG2: CUDA_BackgroundSubtractorMOG2Const + BackgroundSubtractorMOG2 {
    // Required method
    fn as_raw_mut_CUDA_BackgroundSubtractorMOG2(&mut self) -> *mut c_void;

    // Provided methods
    fn apply(
        &mut self,
        image: &dyn ToInputArray,
        fgmask: &mut dyn ToOutputArray,
        learning_rate: f64,
        stream: &mut Stream
    ) -> Result<()> { ... }
    fn get_background_image_1(
        &mut self,
        background_image: &mut GpuMat,
        stream: &mut Stream
    ) -> Result<()> { ... }
}
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 Zivkovic2004 .

See also

BackgroundSubtractorMOG2

Required Methods§

Provided Methods§

source

fn apply( &mut self, image: &dyn ToInputArray, fgmask: &mut dyn ToOutputArray, learning_rate: f64, stream: &mut Stream ) -> Result<()>

source

fn get_background_image_1( &mut self, background_image: &mut GpuMat, stream: &mut Stream ) -> Result<()>

Implementors§