[][src]Trait opencv::xfeatures2d::AffineFeature2D

pub trait AffineFeature2D: Feature2DTrait {
    fn as_raw_AffineFeature2D(&self) -> *mut c_void;

    fn detect(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut VectorOfElliptic_KeyPoint,
        mask: &dyn ToInputArray
    ) -> Result<()> { ... }
fn detect_and_compute(
        &mut self,
        image: &dyn ToInputArray,
        mask: &dyn ToInputArray,
        keypoints: &mut VectorOfElliptic_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

fn detect(
    &mut self,
    image: &dyn ToInputArray,
    keypoints: &mut VectorOfElliptic_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()

fn detect_and_compute(
    &mut self,
    image: &dyn ToInputArray,
    mask: &dyn ToInputArray,
    keypoints: &mut VectorOfElliptic_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
Loading content...

Methods

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

pub fn create_with_extrator(
    keypoint_detector: &PtrOfFeature2D,
    descriptor_extractor: &PtrOfFeature2D
) -> Result<PtrOfAffineFeature2D>
[src]

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

pub fn create(
    keypoint_detector: &PtrOfFeature2D
) -> Result<PtrOfAffineFeature2D>
[src]

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

Implementors

Loading content...