Edge filter using the Canny algorithm.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static Image Canny( ImagePlane imgPlane, EdgeFilter edgeFilter, int lowerThreshold, int upperThreshold )
Parameters
- imgPlane
- Type: Stemmer.CvbImagePlane
Image plane to be filtered. - edgeFilter
- Type: Stemmer.Cvb.FoundationEdgeFilter
Edge filter method to be used. - lowerThreshold
- Type: SystemInt32
Lower threshold for hysteresis thresholding. - upperThreshold
- Type: SystemInt32
Upper threshold for edge detection and hysteresis thresholding.
Return Value
Type: ImageThe filtered image
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | If the input imgPlane has already been disposed. |
Remarks
- imgPlane is differentiated in x and y direction using the edgeFilter. From the two derivatives the direction and magnitude is computed.
- The directional information is simplified and then the local maximum along an edge contour is determined that lies above the upperThreshold.
- The contours are then traced starting from the local maximum using hysteresis thresholding with the lowerThreshold to counter broken edges.
See Also