Class Threshold
Represents an operator that applies a fixed threshold to each image in the sequence.
Inherited Members
Namespace: Bonsai.Vision
Assembly: Bonsai.Vision.dll
Syntax
public class Threshold : Transform<IplImage, IplImage>
Properties
| Improve this Doc View SourceMaxValue
Gets or sets the value assigned to pixels determined to be above the threshold.
Declaration
public double MaxValue { get; set; }
Property Value
Type | Description |
---|---|
Double |
ThresholdType
Gets or sets the type of threshold to apply to individual pixels.
Declaration
public ThresholdTypes ThresholdType { get; set; }
Property Value
Type | Description |
---|---|
ThresholdTypes |
ThresholdValue
Gets or sets the threshold value used to test individual pixels.
Declaration
[Range(0, 255)]
[Precision(0, 1)]
public double ThresholdValue { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceProcess(IObservable<IplImage>)
Applies a fixed threshold to each image in an observable sequence.
Declaration
public override IObservable<IplImage> Process(IObservable<IplImage> source)
Parameters
Type | Name | Description |
---|---|---|
IObservable<IplImage> | source | The sequence of images to threshold. |
Returns
Type | Description |
---|---|
IObservable<IplImage> | A sequence of IplImage objects where each non-zero pixel represents a value in the original image that was accepted by the threshold criteria. |
Overrides
Bonsai.Combinator<OpenCV.Net.IplImage, OpenCV.Net.IplImage>.Process(System.IObservable<OpenCV.Net.IplImage>)