pub struct FeatureMatch { /* private fields */ }Expand description
One descriptor correspondence from a query feature to a train feature.
Implementations§
Source§impl FeatureMatch
impl FeatureMatch
Sourcepub fn try_new(
query_index: usize,
train_index: usize,
distance: f32,
) -> VisionResult<Self>
pub fn try_new( query_index: usize, train_index: usize, distance: f32, ) -> VisionResult<Self>
Creates a correspondence with a finite non-negative distance.
Sourcepub fn validate(
self,
query_count: usize,
train_count: usize,
) -> VisionResult<Self>
pub fn validate( self, query_count: usize, train_count: usize, ) -> VisionResult<Self>
Validates both indices against their feature collections.
Sourcepub const fn query_index(self) -> usize
pub const fn query_index(self) -> usize
Returns the query descriptor row index.
Sourcepub const fn train_index(self) -> usize
pub const fn train_index(self) -> usize
Returns the train descriptor row index.
Trait Implementations§
Source§impl Clone for FeatureMatch
impl Clone for FeatureMatch
Source§fn clone(&self) -> FeatureMatch
fn clone(&self) -> FeatureMatch
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 FeatureMatch
impl Debug for FeatureMatch
Source§impl PartialEq for FeatureMatch
impl PartialEq for FeatureMatch
Source§fn eq(&self, other: &FeatureMatch) -> bool
fn eq(&self, other: &FeatureMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FeatureMatch
impl StructuralPartialEq for FeatureMatch
Auto Trait Implementations§
impl Freeze for FeatureMatch
impl RefUnwindSafe for FeatureMatch
impl Send for FeatureMatch
impl Sync for FeatureMatch
impl Unpin for FeatureMatch
impl UnsafeUnpin for FeatureMatch
impl UnwindSafe for FeatureMatch
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