pub trait AffineFeature2D: Feature2DTrait + AffineFeature2DConst {
    // Required method
    fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void;

    // Provided methods
    fn detect(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut Vector<Elliptic_KeyPoint>,
        mask: &dyn ToInputArray
    ) -> Result<()> { ... }
    fn detect_and_compute(
        &mut self,
        image: &dyn ToInputArray,
        mask: &dyn ToInputArray,
        keypoints: &mut Vector<Elliptic_KeyPoint>,
        descriptors: &mut dyn ToOutputArray,
        use_provided_keypoints: bool
    ) -> Result<()> { ... }
}
Expand description

Class implementing affine adaptation for key points.

A [FeatureDetector] and a [DescriptorExtractor] are wrapped to augment the detected points with their affine invariant elliptic region and to compute the feature descriptors on the regions after warping them into circles.

The interface is equivalent to [Feature2D], adding operations for Elliptic_KeyPoint “Elliptic_KeyPoints” instead of [KeyPoint] “KeyPoints”.

Required Methods§

Provided Methods§

source

fn detect( &mut self, image: &dyn ToInputArray, keypoints: &mut Vector<Elliptic_KeyPoint>, mask: &dyn ToInputArray ) -> Result<()>

Detects keypoints in the image using the wrapped detector and performs affine adaptation to augment them with their elliptic regions.

C++ default parameters
  • mask: noArray()
source

fn detect_and_compute( &mut self, image: &dyn ToInputArray, mask: &dyn ToInputArray, keypoints: &mut Vector<Elliptic_KeyPoint>, descriptors: &mut dyn ToOutputArray, use_provided_keypoints: bool ) -> Result<()>

Detects keypoints and computes descriptors for their surrounding regions, after warping them into circles.

C++ default parameters
  • use_provided_keypoints: false

Implementations§

source§

impl dyn AffineFeature2D + '_

source

pub fn create( keypoint_detector: Ptr<Feature2D>, descriptor_extractor: Ptr<Feature2D> ) -> Result<Ptr<dyn AffineFeature2D>>

Creates an instance wrapping the given keypoint detector and descriptor extractor.

source

pub fn create_1( keypoint_detector: Ptr<Feature2D> ) -> Result<Ptr<dyn AffineFeature2D>>

Creates an instance where keypoint detector and descriptor extractor are identical.

Implementors§