| BackgroundSubtractorKNNCreate Method |
Creates KNN Background Subtractor
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static BackgroundSubtractorKNN Create(
int history = 500,
double dist2Threshold = 400,
bool detectShadows = true
)
Public Shared Function Create (
Optional history As Integer = 500,
Optional dist2Threshold As Double = 400,
Optional detectShadows As Boolean = true
) As BackgroundSubtractorKNN
public:
static BackgroundSubtractorKNN^ Create(
int history = 500,
double dist2Threshold = 400,
bool detectShadows = true
)
static member Create :
?history : int *
?dist2Threshold : float *
?detectShadows : bool
(* Defaults:
let _history = defaultArg history 500
let _dist2Threshold = defaultArg dist2Threshold 400
let _detectShadows = defaultArg detectShadows true
*)
-> BackgroundSubtractorKNN
Parameters
- history (Optional)
- Type: SystemInt32
Length of the history. - dist2Threshold (Optional)
- Type: SystemDouble
Threshold on the squared distance between the pixel and the sample to decide
whether a pixel is close to that sample. 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:
BackgroundSubtractorKNN[Missing <returns> documentation for "M:OpenCvSharp.BackgroundSubtractorKNN.Create(System.Int32,System.Double,System.Boolean)"]
See Also