#[repr(C)]pub struct DMatch {
pub query_idx: i32,
pub train_idx: i32,
pub img_idx: i32,
pub distance: f32,
}
Expand description
Class for matching keypoint descriptors
query descriptor index, train descriptor index, train image index, and distance between descriptors.
Fields
query_idx: i32
query descriptor index
train_idx: i32
train descriptor index
img_idx: i32
train image index
distance: f32
Implementations
sourceimpl DMatch
impl DMatch
sourcepub fn default() -> Result<DMatch>
pub fn default() -> Result<DMatch>
////////////////////////////// DMatch ////////////////////////////////
pub fn new(_query_idx: i32, _train_idx: i32, _distance: f32) -> Result<DMatch>
pub fn new_index(
_query_idx: i32,
_train_idx: i32,
_img_idx: i32,
_distance: f32
) -> Result<DMatch>
Trait Implementations
impl Copy for DMatch
impl StructuralPartialEq for DMatch
impl VectorElement for DMatch where
Vector<DMatch>: VectorExtern<DMatch>,
Auto Trait Implementations
impl RefUnwindSafe for DMatch
impl Send for DMatch
impl Sync for DMatch
impl Unpin for DMatch
impl UnwindSafe for DMatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more