@@ -129,6 +129,52 @@ class CV_EXPORTS BriefDescriptorExtractor : public DescriptorExtractor
129129 static Ptr<BriefDescriptorExtractor> create ( int bytes = 32 );
130130};
131131
132+ /* * @overload */
133+ CV_EXPORTS void AGAST ( InputArray image, CV_OUT std::vector<KeyPoint>& keypoints,
134+ int threshold, bool nonmaxSuppression=true );
135+
136+ /* * @brief Detects corners using the AGAST algorithm
137+
138+ @param image grayscale image where keypoints (corners) are detected.
139+ @param keypoints keypoints detected on the image.
140+ @param threshold threshold on difference between intensity of the central pixel and pixels of a
141+ circle around this pixel.
142+ @param nonmaxSuppression if true, non-maximum suppression is applied to detected corners
143+ (keypoints).
144+ @param type one of the four neighborhoods as defined in the paper:
145+ AgastFeatureDetector::AGAST_5_8, AgastFeatureDetector::AGAST_7_12d,
146+ AgastFeatureDetector::AGAST_7_12s, AgastFeatureDetector::OAST_9_16
147+
148+ Detects corners using the AGAST algorithm by @cite mair2010_agast .
149+
150+ */
151+ CV_EXPORTS void AGAST ( InputArray image, CV_OUT std::vector<KeyPoint>& keypoints,
152+ int threshold, bool nonmaxSuppression, int type );
153+
154+ /* * @brief Wrapping class for feature detection using the AGAST method. :
155+ */
156+ class CV_EXPORTS_W AgastFeatureDetector : public Feature2D
157+ {
158+ public:
159+ enum
160+ {
161+ AGAST_5_8 = 0 , AGAST_7_12d = 1 , AGAST_7_12s = 2 , OAST_9_16 = 3 ,
162+ THRESHOLD = 10000 , NONMAX_SUPPRESSION = 10001 ,
163+ };
164+
165+ CV_WRAP static Ptr<AgastFeatureDetector> create ( int threshold=10 ,
166+ bool nonmaxSuppression=true ,
167+ int type=AgastFeatureDetector::OAST_9_16 );
168+
169+ CV_WRAP virtual void setThreshold (int threshold) = 0;
170+ CV_WRAP virtual int getThreshold () const = 0;
171+
172+ CV_WRAP virtual void setNonmaxSuppression (bool f) = 0;
173+ CV_WRAP virtual bool getNonmaxSuppression () const = 0;
174+
175+ CV_WRAP virtual void setType (int type) = 0;
176+ CV_WRAP virtual int getType () const = 0;
177+ };
132178
133179/* * @brief Class implementing the locally uniform comparison image descriptor, described in @cite LUCID
134180
0 commit comments