| MatThreshold Method |
Applies a fixed-level threshold to each array element.
The input matrix must be single-channel, 8-bit or 32-bit floating point.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat Threshold(
double thresh,
double maxval,
ThresholdTypes type
)
Public Function Threshold (
thresh As Double,
maxval As Double,
type As ThresholdTypes
) As Mat
public:
Mat^ Threshold(
double thresh,
double maxval,
ThresholdTypes type
)
member Threshold :
thresh : float *
maxval : float *
type : ThresholdTypes -> Mat
Parameters
- thresh
- Type: SystemDouble
threshold value. - maxval
- Type: SystemDouble
maximum value to use with the THRESH_BINARY and THRESH_BINARY_INV thresholding types. - type
- Type: OpenCvSharpThresholdTypes
thresholding type (see the details below).
Return Value
Type:
Matoutput array of the same size and type as src.
See Also