Applies adaptive threshold to array.
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void AdaptiveThreshold( CvArr dst, double maxValue, AdaptiveThresholdType adaptiveMethod, ThresholdType thresholdType, int blockSize )
Parameters
- dst
- Type: OpenCvSharpCvArr
Destination image. - maxValue
- Type: SystemDouble
Maximum value that is used with CV_THRESH_BINARY and CV_THRESH_BINARY_INV. - adaptiveMethod
- Type: OpenCvSharpAdaptiveThresholdType
Adaptive thresholding algorithm to use: CV_ADAPTIVE_THRESH_MEAN_C or CV_ADAPTIVE_THRESH_GAUSSIAN_C. - thresholdType
- Type: OpenCvSharpThresholdType
Thresholding type. - blockSize
- Type: SystemInt32
The size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, ...
See Also