Table of Contents

Class RangeThreshold

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that tests which pixels lie within the specified range for each image in the sequence.

public class RangeThreshold : Transform<IplImage, IplImage>
Inheritance
RangeThreshold
Inherited Members

Properties

Lower

Gets or sets the inclusive lower boundary of the range.

[TypeConverter(typeof(RangeScalarConverter))]
public Scalar Lower { get; set; }

Property Value

Scalar

Upper

Gets or sets the exclusive upper boundary of the range.

[TypeConverter(typeof(RangeScalarConverter))]
public Scalar Upper { get; set; }

Property Value

Scalar

Methods

Process(IObservable<IplImage>)

Tests which pixels lie within the specified range for each image in an observable sequence.

public override IObservable<IplImage> Process(IObservable<IplImage> source)

Parameters

source IObservable<IplImage>

The sequence of images to threshold. Each channel in a color image is tested independently according to the specified scalar range.

Returns

IObservable<IplImage>

A sequence of binary images where each pixel is non-zero if the corresponding value in the original image is within the allowable range.