[][src]Trait opencv::hub_prelude::CUDA_BackgroundSubtractorMOG

pub trait CUDA_BackgroundSubtractorMOG: BackgroundSubtractor {
    pub fn as_raw_CUDA_BackgroundSubtractorMOG(&self) -> *const c_void;
pub fn as_raw_mut_CUDA_BackgroundSubtractorMOG(&mut self) -> *mut c_void; pub fn apply(
        &mut self,
        image: &dyn ToInputArray,
        fgmask: &mut dyn ToOutputArray,
        learning_rate: f64,
        stream: &mut Stream
    ) -> Result<()> { ... }
pub fn get_background_image(
        &self,
        background_image: &mut dyn ToOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... }
pub fn get_background_image_1(
        &mut self,
        background_image: &mut GpuMat,
        stream: &mut Stream
    ) -> Result<()> { ... }
pub fn get_history(&self) -> Result<i32> { ... }
pub fn set_history(&mut self, nframes: i32) -> Result<()> { ... }
pub fn get_n_mixtures(&self) -> Result<i32> { ... }
pub fn set_n_mixtures(&mut self, nmix: i32) -> Result<()> { ... }
pub fn get_background_ratio(&self) -> Result<f64> { ... }
pub fn set_background_ratio(&mut self, background_ratio: f64) -> Result<()> { ... }
pub fn get_noise_sigma(&self) -> Result<f64> { ... }
pub fn set_noise_sigma(&mut self, noise_sigma: f64) -> Result<()> { ... } }

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

Loading content...

Provided methods

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

pub fn get_background_image(
    &self,
    background_image: &mut dyn ToOutputArray,
    stream: &mut Stream
) -> Result<()>
[src]

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

pub fn get_history(&self) -> Result<i32>[src]

pub fn set_history(&mut self, nframes: i32) -> Result<()>[src]

pub fn get_n_mixtures(&self) -> Result<i32>[src]

pub fn set_n_mixtures(&mut self, nmix: i32) -> Result<()>[src]

pub fn get_background_ratio(&self) -> Result<f64>[src]

pub fn set_background_ratio(&mut self, background_ratio: f64) -> Result<()>[src]

pub fn get_noise_sigma(&self) -> Result<f64>[src]

pub fn set_noise_sigma(&mut self, noise_sigma: f64) -> Result<()>[src]

Loading content...

Implementors

Loading content...