http://www.emgu.com
Transforms grayscale image to binary image. Threshold calculated individually for each pixel. For the method CV_ADAPTIVE_THRESH_MEAN_C it is a mean of blockSize x blockSize pixel neighborhood, subtracted by param1. For the method CV_ADAPTIVE_THRESH_GAUSSIAN_C it is a weighted sum (gaussian) of blockSize x blockSize pixel neighborhood, subtracted by param1.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public Image<TColor, TDepth> ThresholdAdaptive(
	TColor maxValue,
	ADAPTIVE_THRESHOLD_TYPE adaptiveType,
	THRESH thresholdType,
	int blockSize,
	TColor param1
)
Visual Basic
Public Function ThresholdAdaptive ( _
	maxValue As TColor, _
	adaptiveType As ADAPTIVE_THRESHOLD_TYPE, _
	thresholdType As THRESH, _
	blockSize As Integer, _
	param1 As TColor _
) As Image(Of TColor, TDepth)
Visual C++
public:
Image<TColor, TDepth>^ ThresholdAdaptive(
	TColor maxValue, 
	ADAPTIVE_THRESHOLD_TYPE adaptiveType, 
	THRESH thresholdType, 
	int blockSize, 
	TColor param1
)

Parameters

maxValue
Type: TColor
Maximum value to use with CV_THRESH_BINARY and CV_THRESH_BINARY_INV thresholding types
adaptiveType
Type: Emgu.CV.CvEnum..::..ADAPTIVE_THRESHOLD_TYPE
Adaptive_method
thresholdType
Type: Emgu.CV.CvEnum..::..THRESH
Thresholding type. must be one of CV_THRESH_BINARY, CV_THRESH_BINARY_INV
blockSize
Type: System..::..Int32
The size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, ...
param1
Type: TColor
Constant subtracted from mean or weighted mean. It may be negative.

Return Value

The result of the adaptive threshold

See Also