[][src]Struct opencv::core::DMatch

#[repr(C)]
pub struct DMatch {
    pub query_idx: i32,
    pub train_idx: i32,
    pub img_idx: i32,
    pub distance: f32,
}

Class for matching keypoint descriptors

query descriptor index, train descriptor index, train image index, and distance between descriptors.

Fields

query_idx: i32train_idx: i32img_idx: i32distance: f32

Methods

impl DMatch[src]

pub fn default() -> Result<DMatch>[src]

pub fn new(_query_idx: i32, _train_idx: i32, _distance: f32) -> Result<DMatch>[src]

pub fn new_index(
    _query_idx: i32,
    _train_idx: i32,
    _img_idx: i32,
    _distance: f32
) -> Result<DMatch>
[src]

Trait Implementations

impl Clone for DMatch[src]

impl PartialEq<DMatch> for DMatch[src]

impl Copy for DMatch[src]

impl Debug for DMatch[src]

Auto Trait Implementations

impl Unpin for DMatch

impl Sync for DMatch

impl Send for DMatch

impl UnwindSafe for DMatch

impl RefUnwindSafe for DMatch

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]