http://www.emgu.com
Applies fixed-level thresholding to single-channel array. The function is typically used to get bi-level (binary) image out of grayscale image (cvCmpS could be also used for this purpose) or for removing a noise, i.e. filtering out pixels with too small or too large values. There are several types of thresholding the function supports that are determined by threshold_type
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
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
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. - 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