CvInvokeAdaptiveThreshold Method |
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.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void AdaptiveThreshold(
IInputArray src,
IOutputArray dst,
double maxValue,
AdaptiveThresholdType adaptiveType,
ThresholdType thresholdType,
int blockSize,
double param1
)
Public Shared Sub AdaptiveThreshold (
src As IInputArray,
dst As IOutputArray,
maxValue As Double,
adaptiveType As AdaptiveThresholdType,
thresholdType As ThresholdType,
blockSize As Integer,
param1 As Double
)
public:
static void AdaptiveThreshold(
IInputArray^ src,
IOutputArray^ dst,
double maxValue,
AdaptiveThresholdType adaptiveType,
ThresholdType thresholdType,
int blockSize,
double param1
)
static member AdaptiveThreshold :
src : IInputArray *
dst : IOutputArray *
maxValue : float *
adaptiveType : AdaptiveThresholdType *
thresholdType : ThresholdType *
blockSize : int *
param1 : float -> unit
Parameters
- src
- Type: Emgu.CVIInputArray
Source array (single-channel, 8-bit of 32-bit floating point). - dst
- Type: Emgu.CVIOutputArray
Destination array; must be either the same type as src or 8-bit. - maxValue
- Type: SystemDouble
Maximum value to use with CV_THRESH_BINARY and CV_THRESH_BINARY_INV thresholding types - adaptiveType
- Type: Emgu.CV.CvEnumAdaptiveThresholdType
Adaptive_method - thresholdType
- Type: Emgu.CV.CvEnumThresholdType
Thresholding type. must be one of CV_THRESH_BINARY, CV_THRESH_BINARY_INV - blockSize
- Type: SystemInt32
The size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, ... - param1
- Type: SystemDouble
Constant subtracted from mean or weighted mean. It may be negative.
See Also