Class AdaptiveThreshold
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
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
MaxValue
Gets or sets the value assigned to pixels determined to be above the threshold.
public double MaxValue { get; set; }
Property Value
Parameter
Gets or sets an algorithm dependent constant subtracted from the mean or weighted mean.
public double Parameter { get; set; }
Property Value
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
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.