OpenCvSharp.Cv2.AGAST C# (CSharp) Method

AGAST() public static method

Detects corners using the AGAST algorithm
public static AGAST ( InputArray image, int threshold, bool nonmaxSuppression, AGASTType type ) : KeyPoint[]
image InputArray grayscale image where keypoints (corners) are detected.
threshold int threshold on difference between intensity of the central pixel /// and pixels of a circle around this pixel.
nonmaxSuppression bool if true, non-maximum suppression is applied to /// detected corners (keypoints).
type AGASTType one of the four neighborhoods as defined in the paper
return KeyPoint[]
        public static KeyPoint[] AGAST(InputArray image, int threshold, bool nonmaxSuppression, AGASTType type)
        {
            if (image == null)
                throw new ArgumentNullException(nameof(image));
            image.ThrowIfDisposed();
            
            using (var vector = new VectorOfKeyPoint())
            {
                NativeMethods.features2d_AGAST(image.CvPtr, vector.CvPtr, threshold, nonmaxSuppression ? 1 : 0,
                    (int) type);
                GC.KeepAlive(image);
                return vector.ToArray();
            }
        }
Cv2