Table of Contents

Class AdaptiveThreshold

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that applies an adaptive threshold to every grayscale image in the sequence.

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

Properties

AdaptiveMethod

Gets or sets a value specifying the adaptive threshold algorithm used to process the image.

public AdaptiveThresholdMethod AdaptiveMethod { get; set; }

Property Value

AdaptiveThresholdMethod

BlockSize

Gets or sets the size of the pixel neighborhood used to calculate the threshold for a pixel.

[Precision(0, 2)]
[Range(3, 2147483647)]
[TypeConverter(typeof(OddKernelSizeConverter))]
public int BlockSize { get; set; }

Property Value

int

MaxValue

Gets or sets the value assigned to pixels determined to be above the threshold.

public double MaxValue { get; set; }

Property Value

double

Parameter

Gets or sets an algorithm dependent constant subtracted from the mean or weighted mean.

public double Parameter { get; set; }

Property Value

double

ThresholdType

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

public ThresholdTypes ThresholdType { get; set; }

Property Value

ThresholdTypes

Methods

Process(IObservable<IplImage>)

Applies an adaptive threshold to every grayscale image in an observable sequence.

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

Parameters

source IObservable<IplImage>

The sequence of images to threshold.

Returns

IObservable<IplImage>

The sequence of thresholded images.