Method SetGradientThreshold
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SetGradientThreshold(double)
Set detector gradient magnitude threshold.
Sets the coherence threshold for detected bounding boxes. Increasing this value will generate a closer fitted bounding box width and can reduce false-positives. Values between 16 and 1024 generally work, while too high of a value will remove valid detections.
public void SetGradientThreshold(double thresh)
Parameters
threshdoublegradient magnitude threshold (default 64).