#[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§
Source§impl DMatch
impl DMatch
pub fn less_than(self, m: DMatch) -> Result<bool>
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
Auto Trait Implementations§
impl Freeze for DMatch
impl RefUnwindSafe for DMatch
impl Send for DMatch
impl Sync for DMatch
impl Unpin for DMatch
impl UnwindSafe for DMatch
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