Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(LSBPCameraMotionCompensation, int, int, float, float, float, float, float, float, float, float, int, int)

Creates an instance of BackgroundSubtractorLSBP algorithm.

public static BackgroundSubtractorLSBP Create(LSBPCameraMotionCompensation mc = LSBPCameraMotionCompensation.None, int nSamples = 20, int lsbpRadius = 16, float tLower = 2, float tUpper = 32, float tInc = 1, float tDec = 0.05, float rScale = 10, float rIncdec = 0.005, float noiseRemovalThresholdFacBG = 0.0004, float noiseRemovalThresholdFacFG = 0.0008, int lsbpThreshold = 8, int minCount = 2)

Parameters

mc LSBPCameraMotionCompensation

Whether to use camera motion compensation.

nSamples int

Number of samples to maintain at each point of the frame.

lsbpRadius int

LSBP descriptor radius.

tLower float

Lower bound for T-values.

tUpper float

Upper bound for T-values.

tInc float

Increase step for T-values.

tDec float

Decrease step for T-values.

rScale float

Scale coefficient for threshold values.

rIncdec float

Increase/Decrease step for threshold values.

noiseRemovalThresholdFacBG float

Strength of the noise removal for background points.

noiseRemovalThresholdFacFG float

Strength of the noise removal for foreground points.

lsbpThreshold int

Threshold for LSBP binary string.

minCount int

Minimal number of matches for sample to be considered as foreground.

Returns

BackgroundSubtractorLSBP