Trait opencv::prelude::AffineFeature2DTrait
source · pub trait AffineFeature2DTrait: Feature2DTrait + AffineFeature2DTraitConst {
// Required method
fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void;
// Provided methods
fn detect(
&mut self,
image: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
mask: &impl ToInputArray,
) -> Result<()> { ... }
fn detect_def(
&mut self,
image: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
) -> Result<()> { ... }
fn detect_and_compute(
&mut self,
image: &impl ToInputArray,
mask: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
descriptors: &mut impl ToOutputArray,
use_provided_keypoints: bool,
) -> Result<()> { ... }
fn detect_and_compute_def(
&mut self,
image: &impl ToInputArray,
mask: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
descriptors: &mut impl ToOutputArray,
) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::xfeatures2d::AffineFeature2D
Required Methods§
fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void
Provided Methods§
sourcefn detect(
&mut self,
image: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
mask: &impl ToInputArray,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, keypoints: &mut Vector<Elliptic_KeyPoint>, mask: &impl 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_def(
&mut self,
image: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, keypoints: &mut Vector<Elliptic_KeyPoint>, ) -> Result<()>
Detects keypoints in the image using the wrapped detector and performs affine adaptation to augment them with their elliptic regions.
§Note
This alternative version of AffineFeature2DTrait::detect function uses the following default values for its arguments:
- mask: noArray()
sourcefn detect_and_compute(
&mut self,
image: &impl ToInputArray,
mask: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
descriptors: &mut impl ToOutputArray,
use_provided_keypoints: bool,
) -> Result<()>
fn detect_and_compute( &mut self, image: &impl ToInputArray, mask: &impl ToInputArray, keypoints: &mut Vector<Elliptic_KeyPoint>, descriptors: &mut impl 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
sourcefn detect_and_compute_def(
&mut self,
image: &impl ToInputArray,
mask: &impl ToInputArray,
keypoints: &mut Vector<Elliptic_KeyPoint>,
descriptors: &mut impl ToOutputArray,
) -> Result<()>
fn detect_and_compute_def( &mut self, image: &impl ToInputArray, mask: &impl ToInputArray, keypoints: &mut Vector<Elliptic_KeyPoint>, descriptors: &mut impl ToOutputArray, ) -> Result<()>
Detects keypoints and computes descriptors for their surrounding regions, after warping them into circles.
§Note
This alternative version of AffineFeature2DTrait::detect_and_compute function uses the following default values for its arguments:
- use_provided_keypoints: false