| BackgroundSubtractorMOG2Create Method |
Creates MOG2 Background Subtractor.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static BackgroundSubtractorMOG2 Create(
int history = 500,
double varThreshold = 16,
bool detectShadows = true
)
Public Shared Function Create (
Optional history As Integer = 500,
Optional varThreshold As Double = 16,
Optional detectShadows As Boolean = true
) As BackgroundSubtractorMOG2
public:
static BackgroundSubtractorMOG2^ Create(
int history = 500,
double varThreshold = 16,
bool detectShadows = true
)
static member Create :
?history : int *
?varThreshold : float *
?detectShadows : bool
(* Defaults:
let _history = defaultArg history 500
let _varThreshold = defaultArg varThreshold 16
let _detectShadows = defaultArg detectShadows true
*)
-> BackgroundSubtractorMOG2
Parameters
- history (Optional)
- Type: SystemInt32
Length of the history. - varThreshold (Optional)
- Type: SystemDouble
Threshold on the squared Mahalanobis distance between the pixel and the model
to decide whether a pixel is well described by the background model. This parameter does not affect the background update. - detectShadows (Optional)
- Type: SystemBoolean
If true, the algorithm will detect shadows and mark them. It decreases the speed a bit,
so if you do not need this feature, set the parameter to false.
Return Value
Type:
BackgroundSubtractorMOG2[Missing <returns> documentation for "M:OpenCvSharp.BackgroundSubtractorMOG2.Create(System.Int32,System.Double,System.Boolean)"]
See Also