http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static double cvThreshold( IntPtr src, IntPtr dst, double threshold, double maxValue, THRESH thresholdType ) |
Visual Basic |
---|
Public Shared Function cvThreshold ( _ src As IntPtr, _ dst As IntPtr, _ threshold As Double, _ maxValue As Double, _ thresholdType As THRESH _ ) As Double |
Visual C++ |
---|
public: static double cvThreshold( IntPtr src, IntPtr dst, double threshold, double maxValue, THRESH thresholdType ) |
Parameters
- src
- Type: System..::..IntPtr
Source array (single-channel, 8-bit of 32-bit floating point).
- dst
- Type: System..::..IntPtr
Destination array; must be either the same type as src or 8-bit.
- threshold
- Type: System..::..Double
Threshold value
- maxValue
- Type: System..::..Double
Maximum value to use with CV_THRESH_BINARY and CV_THRESH_BINARY_INV thresholding types
- thresholdType
- Type: Emgu.CV.CvEnum..::..THRESH
Thresholding type
Return Value
[Missing <returns> documentation for "M:Emgu.CV.CvInvoke.cvThreshold(System.IntPtr,System.IntPtr,System.Double,System.Double,Emgu.CV.CvEnum.THRESH)"]