Susan corners detector.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public class SusanCornersDetector : ICornersDetector |
Remarks
The class implements Susan corners detector, which is described by S.M. Smith in: S.M. Smith, “SUSAN – a new approach to low level image processing”, Internal Technical Report TR95SMS1, Defense Research Agency, Chobham Lane, Chertsey, Surrey, UK, 1995.
- Analyzing each pixel and searching for its USAN area, the 7×7 mask is used,
which is comprised of 37 pixels. The mask has circle shape:
Copy xxx xxxxx xxxxxxx xxxxxxx xxxxxxx xxxxx xxx
- In the case if USAN’s center of mass has the same coordinates as nucleus (central point), the pixel is not a corner.
- For noise suppression the 5×5 square window is used.
The class processes only grayscale 8 bpp and color 24/32 bpp images. In the case of color image, it is converted to grayscale internally using GrayscaleBT709 filter.
Sample usage:
// create corners detector's instance SusanCornersDetector scd = new SusanCornersDetector( ); // process image searching for corners List<IntPoint> corners = scd.ProcessImage( image ); // process points foreach ( IntPoint corner in corners ) { // ... }