[][src]Trait opencv::hub_prelude::AffineFeature2D

pub trait AffineFeature2D: Feature2DTrait {
    pub fn as_raw_AffineFeature2D(&self) -> *const c_void;
pub fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void; pub fn detect(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut Vector<Elliptic_KeyPoint>,
        mask: &dyn ToInputArray
    ) -> Result<()> { ... }
pub 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<()> { ... } }

Class implementing affine adaptation for key points.

A @ref FeatureDetector and a @ref 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 @ref Feature2D, adding operations for @ref Elliptic_KeyPoint "Elliptic_KeyPoints" instead of @ref KeyPoint "KeyPoints".

Required methods

Loading content...

Provided methods

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

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()

pub 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<()>
[src]

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

C++ default parameters

  • use_provided_keypoints: false
Loading content...

Implementations

impl<'_> dyn AffineFeature2D + '_[src]

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

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

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

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

Implementors

Loading content...