http://www.emgu.com
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: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static double Threshold(
IInputArray src,
IOutputArray dst,
double threshold,
double maxValue,
ThresholdType thresholdType
)
Public Shared Function Threshold (
src As IInputArray,
dst As IOutputArray,
threshold As Double,
maxValue As Double,
thresholdType As ThresholdType
) As Double
public:
static double Threshold(
IInputArray^ src,
IOutputArray^ dst,
double threshold,
double maxValue,
ThresholdType thresholdType
)
static member Threshold :
src : IInputArray *
dst : IOutputArray *
threshold : float *
maxValue : float *
thresholdType : ThresholdType -> float
Parameters
- src
- Type: Emgu.CVIInputArray
Input array (multiple-channel, 8-bit or 32-bit floating point). - dst
- Type: Emgu.CVIOutputArray
Output array of the same size and type and the same number of channels as src. - threshold
- Type: SystemDouble
Threshold value - maxValue
- Type: SystemDouble
Maximum value to use with CV_THRESH_BINARY and CV_THRESH_BINARY_INV thresholding types - thresholdType
- 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