Class Threshold
Represents an operator that applies a fixed threshold to each element in the sequence.
public class Threshold : Transform<Mat, Mat>
- Inheritance
-
Threshold
- Inherited Members
Properties
MaxValue
Gets or sets the value assigned to samples determined to be above the threshold.
public double MaxValue { get; set; }
Property Value
ThresholdType
Gets or sets a value specifying the type of threshold to apply to individual samples.
public ThresholdTypes ThresholdType { get; set; }
Property Value
ThresholdValue
Gets or sets the threshold value used to test individual samples.
[Range(0, 1)]
public double ThresholdValue { get; set; }
Property Value
Methods
Process(IObservable<Mat>)
Applies a fixed threshold to each element in an observable sequence.
public override IObservable<Mat> Process(IObservable<Mat> source)
Parameters
source
IObservable<Mat>A sequence of 2D matrix values.
Returns
- IObservable<Mat>
A sequence of 2D matrix values, where the values in each matrix are set by applying the threshold operation specified in ThresholdType.