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.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvAdaptiveThreshold(
	IntPtr src,
	IntPtr dst,
	double maxValue,
	ADAPTIVE_THRESHOLD_TYPE adaptiveType,
	THRESH thresholdType,
	int blockSize,
	double param1
)
Public Shared Sub cvAdaptiveThreshold ( _
	src As IntPtr, _
	dst As IntPtr, _
	maxValue As Double, _
	adaptiveType As ADAPTIVE_THRESHOLD_TYPE, _
	thresholdType As THRESH, _
	blockSize As Integer, _
	param1 As Double _
)
public:
static void cvAdaptiveThreshold(
	IntPtr src, 
	IntPtr dst, 
	double maxValue, 
	ADAPTIVE_THRESHOLD_TYPE adaptiveType, 
	THRESH thresholdType, 
	int blockSize, 
	double param1
)

Parameters

src
IntPtr
Source array (single-channel, 8-bit of 32-bit floating point).
dst
IntPtr
Destination array; must be either the same type as src or 8-bit.
maxValue
Double
Maximum value to use with CV_THRESH_BINARY and CV_THRESH_BINARY_INV thresholding types
adaptiveType
ADAPTIVE_THRESHOLD_TYPE
Adaptive_method
thresholdType
THRESH
Thresholding type. must be one of CV_THRESH_BINARY, CV_THRESH_BINARY_INV
blockSize
Int32
The size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, ...
param1
Double
Constant subtracted from mean or weighted mean. It may be negative.

See Also