Trait opencv::prelude::AffineFeature2D
source · 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§
fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void
Provided Methods§
sourcefn detect(
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
mask: &dyn ToInputArray
) -> Result<()>
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()
sourcefn 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<()>
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