Click or drag to resize

CvInvokeThreshold Method
Applies a fixed-level threshold to each array element. The function applies fixed-level thresholding to a multiple-channel array. The function is typically used to get a bi-level (binary) image out of a grayscale image ( compare could be also used for this purpose) or for removing a noise, that is, filtering out pixels with too small or too large values. There are several types of thresholding supported by the function. They are determined by type parameter.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static double Threshold(
	IInputArray src,
	IOutputArray dst,
	double threshold,
	double maxValue,
	ThresholdType thresholdType


Type: Emgu.CVIInputArray
Input array (multiple-channel, 8-bit or 32-bit floating point).
Type: Emgu.CVIOutputArray
Output array of the same size and type and the same number of channels as src.
Type: SystemDouble
Threshold value
Type: SystemDouble
Maximum value to use with CV_THRESH_BINARY and CV_THRESH_BINARY_INV thresholding types
Type: Emgu.CV.CvEnumThresholdType
Thresholding type

Return Value

Type: Double

[Missing <returns> documentation for "M:Emgu.CV.CvInvoke.Threshold(Emgu.CV.IInputArray,Emgu.CV.IOutputArray,System.Double,System.Double,Emgu.CV.CvEnum.ThresholdType)"]

See Also