pub struct MatchOptions {
pub cross_check: bool,
pub ratio: Option<f32>,
pub max_distance: Option<f32>,
}Expand description
Filtering applied to brute-force descriptor correspondences.
Fields§
§cross_check: boolKeep only pairs whose reverse nearest neighbour is the query row.
ratio: Option<f32>Lowe ratio threshold in (0, 1); requires at least two train rows.
max_distance: Option<f32>Optional inclusive maximum distance.
Trait Implementations§
Source§impl Clone for MatchOptions
impl Clone for MatchOptions
Source§fn clone(&self) -> MatchOptions
fn clone(&self) -> MatchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatchOptions
impl Debug for MatchOptions
Source§impl Default for MatchOptions
impl Default for MatchOptions
Source§fn default() -> MatchOptions
fn default() -> MatchOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for MatchOptions
impl PartialEq for MatchOptions
Source§fn eq(&self, other: &MatchOptions) -> bool
fn eq(&self, other: &MatchOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MatchOptions
impl StructuralPartialEq for MatchOptions
Auto Trait Implementations§
impl Freeze for MatchOptions
impl RefUnwindSafe for MatchOptions
impl Send for MatchOptions
impl Sync for MatchOptions
impl Unpin for MatchOptions
impl UnsafeUnpin for MatchOptions
impl UnwindSafe for MatchOptions
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