diff --git a/modules/features2d/doc/common_interfaces_of_feature_detectors.rst b/modules/features2d/doc/common_interfaces_of_feature_detectors.rst index 5ee4da08cf..9a80a1db7c 100644 --- a/modules/features2d/doc/common_interfaces_of_feature_detectors.rst +++ b/modules/features2d/doc/common_interfaces_of_feature_detectors.rst @@ -148,7 +148,7 @@ Wrapping class for feature detection using the class FastFeatureDetector : public FeatureDetector { public: - FastFeatureDetector( int threshold=1, bool nonmaxSuppression=true ); + FastFeatureDetector( int threshold=1, bool nonmaxSuppression=true, type=FastFeatureDetector::TYPE_9_16 ); virtual void read( const FileNode& fn ); virtual void write( FileStorage& fs ) const; protected: diff --git a/modules/features2d/doc/feature_detection_and_description.rst b/modules/features2d/doc/feature_detection_and_description.rst index 062228ee29..8c284e63bd 100644 --- a/modules/features2d/doc/feature_detection_and_description.rst +++ b/modules/features2d/doc/feature_detection_and_description.rst @@ -7,7 +7,7 @@ FAST -------- Detects corners using the FAST algorithm -.. ocv:function:: void FAST( InputArray image, vector& keypoints, int threshold, bool nonmaxSupression=true ) +.. ocv:function:: void FAST( InputArray image, vector& keypoints, int threshold, bool nonmaxSupression=true, type=FastFeatureDetector::TYPE_9_16 ) :param image: Image where keypoints (corners) are detected. @@ -17,6 +17,8 @@ Detects corners using the FAST algorithm :param nonmaxSupression: If it is true, non-maximum suppression is applied to detected corners (keypoints). + :param type: one of the three neighborhoods as defined in the paper: ``FastFeatureDetector::TYPE_9_16``, ``FastFeatureDetector::TYPE_7_12``, ``FastFeatureDetector::TYPE_5_8`` + Detects corners using the FAST algorithm by [Rosten06]_. .. [Rosten06] E. Rosten. Machine Learning for High-speed Corner Detection, 2006.