Table of Contents

Class Threshold

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

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

double

ThresholdType

Gets or sets a value specifying the type of threshold to apply to individual samples.

public ThresholdTypes ThresholdType { get; set; }

Property Value

ThresholdTypes

ThresholdValue

Gets or sets the threshold value used to test individual samples.

[Range(0, 1)]
public double ThresholdValue { get; set; }

Property Value

double

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.