Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(int, bool, int, bool)

Creates a CNT Background Subtractor

public static BackgroundSubtractorCNT Create(int minPixelStability = 15, bool useHistory = true, int maxPixelStability = 900, bool isParallel = true)

Parameters

minPixelStability int

number of frames with same pixel color to consider stable

useHistory bool

determines if we're giving a pixel credit for being stable for a long time

maxPixelStability int

maximum allowed credit for a pixel in history

isParallel bool

determines if we're parallelizing the algorithm

Returns

BackgroundSubtractorCNT