[−][src]Trait opencv::xfeatures2d::AffineFeature2D
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
fn as_raw_AffineFeature2D(&self) -> *mut c_void
Provided methods
fn detect(
&mut self,
image: &dyn ToInputArray,
keypoints: &mut VectorOfElliptic_KeyPoint,
mask: &dyn ToInputArray
) -> Result<()>
&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<()>
&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
Methods
impl<'_> dyn AffineFeature2D + '_
[src]
pub fn create_with_extrator(
keypoint_detector: &PtrOfFeature2D,
descriptor_extractor: &PtrOfFeature2D
) -> Result<PtrOfAffineFeature2D>
[src]
keypoint_detector: &PtrOfFeature2D,
descriptor_extractor: &PtrOfFeature2D
) -> Result<PtrOfAffineFeature2D>
Creates an instance wrapping the given keypoint detector and descriptor extractor.
pub fn create(
keypoint_detector: &PtrOfFeature2D
) -> Result<PtrOfAffineFeature2D>
[src]
keypoint_detector: &PtrOfFeature2D
) -> Result<PtrOfAffineFeature2D>
Creates an instance where keypoint detector and descriptor extractor are identical.