[][src]Function opencv::bgsegm::create_background_subtractor_gsoc

pub fn create_background_subtractor_gsoc(
    mc: i32,
    n_samples: i32,
    replace_rate: f32,
    propagation_rate: f32,
    hits_threshold: i32,
    alpha: f32,
    beta: f32,
    blinking_supression_decay: f32,
    blinking_supression_multiplier: f32,
    noise_removal_threshold_fac_bg: f32,
    noise_removal_threshold_fac_fg: f32
) -> Result<Ptr<dyn BackgroundSubtractorGSOC>>

Creates an instance of BackgroundSubtractorGSOC algorithm.

Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.

Parameters

  • mc: Whether to use camera motion compensation.
  • nSamples: Number of samples to maintain at each point of the frame.
  • replaceRate: Probability of replacing the old sample - how fast the model will update itself.
  • propagationRate: Probability of propagating to neighbors.
  • hitsThreshold: How many positives the sample must get before it will be considered as a possible replacement.
  • alpha: Scale coefficient for threshold.
  • beta: Bias coefficient for threshold.
  • blinkingSupressionDecay: Blinking supression decay factor.
  • blinkingSupressionMultiplier: Blinking supression multiplier.
  • noiseRemovalThresholdFacBG: Strength of the noise removal for background points.
  • noiseRemovalThresholdFacFG: Strength of the noise removal for foreground points.

C++ default parameters

  • mc: LSBP_CAMERA_MOTION_COMPENSATION_NONE
  • n_samples: 20
  • replace_rate: 0.003f
  • propagation_rate: 0.01f
  • hits_threshold: 32
  • alpha: 0.01f
  • beta: 0.0022f
  • blinking_supression_decay: 0.1f
  • blinking_supression_multiplier: 0.1f
  • noise_removal_threshold_fac_bg: 0.0004f
  • noise_removal_threshold_fac_fg: 0.0008f