Class Canny
Represents an operator that applies the Canny algorithm for edge detection to each image in the sequence.
public class Canny : Transform<IplImage, IplImage>
- Inheritance
-
Canny
- Inherited Members
Properties
ApertureSize
Gets or sets the aperture parameter for the Sobel operator.
[Range(3, 7)]
[Precision(0, 2)]
[TypeConverter(typeof(OddKernelSizeConverter))]
public int ApertureSize { get; set; }
Property Value
Threshold1
Gets or sets the first threshold. The smallest threshold is used for edge linking and the largest to find initial edge segments.
[Range(0, 2147483647)]
public double Threshold1 { get; set; }
Property Value
Threshold2
Gets or sets the second threshold. The smallest threshold is used for edge linking and the largest to find initial edge segments.
[Range(0, 2147483647)]
public double Threshold2 { get; set; }
Property Value
Methods
Process(IObservable<IplImage>)
Applies the Canny algorithm for edge detection to each image in an observable sequence.
public override IObservable<IplImage> Process(IObservable<IplImage> source)
Parameters
source
IObservable<IplImage>The sequence of images from which to extract edges.
Returns
- IObservable<IplImage>
A sequence of IplImage objects where each non-zero pixel represents an image element which has been classified as an edge.