[][src]Function opencv::bgsegm::create_background_subtractor_mog

pub fn create_background_subtractor_mog(
    history: i32,
    nmixtures: i32,
    background_ratio: f64,
    noise_sigma: f64
) -> Result<PtrOfBackgroundSubtractorMOG>

Creates mixture-of-gaussian background subtractor

Parameters

  • history: Length of the history.
  • nmixtures: Number of Gaussian mixtures.
  • backgroundRatio: Background ratio.
  • noiseSigma: Noise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.

C++ default parameters

  • history: 200
  • nmixtures: 5
  • background_ratio: 0.7
  • noise_sigma: 0