[][src]Function opencv::bgsegm::create_background_subtractor_lsbp

pub fn create_background_subtractor_lsbp(
    mc: i32,
    n_samples: i32,
    lsbp_radius: i32,
    tlower: f32,
    tupper: f32,
    tinc: f32,
    tdec: f32,
    rscale: f32,
    rincdec: f32,
    noise_removal_threshold_fac_bg: f32,
    noise_removal_threshold_fac_fg: f32,
    lsb_pthreshold: i32,
    min_count: i32
) -> Result<Ptr<dyn BackgroundSubtractorLSBP>>

Creates an instance of BackgroundSubtractorLSBP algorithm.

Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at LGuo2016

Parameters

  • mc: Whether to use camera motion compensation.
  • nSamples: Number of samples to maintain at each point of the frame.
  • LSBPRadius: LSBP descriptor radius.
  • Tlower: Lower bound for T-values. See LGuo2016 for details.
  • Tupper: Upper bound for T-values. See LGuo2016 for details.
  • Tinc: Increase step for T-values. See LGuo2016 for details.
  • Tdec: Decrease step for T-values. See LGuo2016 for details.
  • Rscale: Scale coefficient for threshold values.
  • Rincdec: Increase/Decrease step for threshold values.
  • noiseRemovalThresholdFacBG: Strength of the noise removal for background points.
  • noiseRemovalThresholdFacFG: Strength of the noise removal for foreground points.
  • LSBPthreshold: Threshold for LSBP binary string.
  • minCount: Minimal number of matches for sample to be considered as foreground.

C++ default parameters

  • mc: LSBP_CAMERA_MOTION_COMPENSATION_NONE
  • n_samples: 20
  • lsbp_radius: 16
  • tlower: 2.0f
  • tupper: 32.0f
  • tinc: 1.0f
  • tdec: 0.05f
  • rscale: 10.0f
  • rincdec: 0.005f
  • noise_removal_threshold_fac_bg: 0.0004f
  • noise_removal_threshold_fac_fg: 0.0008f
  • lsb_pthreshold: 8
  • min_count: 2