pub struct KeyPointMatchParameters {
pub method: i32,
pub ransac_reproj_threshold: f64,
pub match_keep_ratio: f32,
pub match_ratio: f32,
pub border_mode: i32,
pub border_value: Scalar,
}Expand description
Parameters for keypoint matching and homography estimation.
Fields§
§method: i32Method used in opencv::calib3d::find_homography(), typically opencv::calib3d::RANSAC.
ransac_reproj_threshold: f64Reprojection threshold for RANSAC in find_homography().
A lower value makes RANSAC stricter (fewer matches kept), while a higher value is more lenient.
match_keep_ratio: f32Ratio of best matches to keep after sorting by distance. Common values range from 0.5 to 0.8.
match_ratio: f32Lowe’s ratio test threshold: how similar the best and second-best matches must be.
Used in knn_match() to filter ambiguous matches.
Common values range from 0.7 to 0.9.
border_mode: i32Border mode used when warping images.
Default: opencv::core::BORDER_CONSTANT.
border_value: ScalarBorder value used in warping.
Default: opencv::core::Scalar::default().
Trait Implementations§
Source§impl Clone for KeyPointMatchParameters
impl Clone for KeyPointMatchParameters
Source§fn clone(&self) -> KeyPointMatchParameters
fn clone(&self) -> KeyPointMatchParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyPointMatchParameters
impl Debug for KeyPointMatchParameters
Source§impl Default for KeyPointMatchParameters
impl Default for KeyPointMatchParameters
impl Copy for KeyPointMatchParameters
Auto Trait Implementations§
impl Freeze for KeyPointMatchParameters
impl RefUnwindSafe for KeyPointMatchParameters
impl Send for KeyPointMatchParameters
impl Sync for KeyPointMatchParameters
impl Unpin for KeyPointMatchParameters
impl UnwindSafe for KeyPointMatchParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more