[][src]Function opencv::bgsegm::create_background_subtractor_cnt

pub fn create_background_subtractor_cnt(
    min_pixel_stability: i32,
    use_history: bool,
    max_pixel_stability: i32,
    is_parallel: bool
) -> Result<Ptr<dyn BackgroundSubtractorCNT>>

Creates a CNT Background Subtractor

Parameters

  • minPixelStability: number of frames with same pixel color to consider stable
  • useHistory: determines if we're giving a pixel credit for being stable for a long time
  • maxPixelStability: maximum allowed credit for a pixel in history
  • isParallel: determines if we're parallelizing the algorithm

C++ default parameters

  • min_pixel_stability: 15
  • use_history: true
  • max_pixel_stability: 15*60
  • is_parallel: true