opencv::xfeatures2d

Function fast_for_point_set_def

Source
pub fn fast_for_point_set_def(
    image: &impl ToInputArray,
    keypoints: &mut Vector<KeyPoint>,
    threshold: i32,
) -> Result<()>
Expand description

Estimates cornerness for prespecified KeyPoints using the FAST algorithm

§Parameters

  • image: grayscale image where keypoints (corners) are detected.
  • keypoints: keypoints which should be tested to fit the FAST criteria. Keypoints not being detected as corners are removed.
  • threshold: threshold on difference between intensity of the central pixel and pixels of a circle around this pixel.
  • nonmaxSuppression: if true, non-maximum suppression is applied to detected corners (keypoints).
  • 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 .

§Note

This alternative version of fast_for_point_set function uses the following default values for its arguments:

  • nonmax_suppression: true
  • typ: FastFeatureDetector::TYPE_9_16