Struct cv::features2d::DescriptorMatcher [−][src]
Type for matching keypoint descriptors
Implementations
impl DescriptorMatcher
[src][−]
pub fn new(descriptor_matcher_type: DescriptorMatcherType) -> DescriptorMatcher
[src][−]
Creates a descriptor matcher of a given type with the default parameters (using default constructor).
pub fn add(&mut self, descriptors: &Vec<&Mat>)
[src][−]
Adds descriptors to train a CPU or GPU descriptor collection
pub fn train(&mut self)
[src][−]
Trains a descriptor matcher
pub fn is_empty(&self) -> bool
[src][−]
Returns true if there are no train descriptors
pub fn match_(&self, query_descriptors: &Mat) -> Vec<DMatch>
[src][−]
Finds the best match for each descriptor from a query set
pub fn match_two(
&self,
query_descriptors: &Mat,
train_descriptors: &Mat
) -> Vec<DMatch>
[src][−]
&self,
query_descriptors: &Mat,
train_descriptors: &Mat
) -> Vec<DMatch>
Finds the best match for each descriptor from a query set.
Unlike match_
, train descriptors collection are passed directly
pub fn knn_match(&self, query_descriptors: &Mat, k: usize) -> Vec<Vec<DMatch>>
[src][−]
Finds the k best matches for each descriptor from a query set.
Trait Implementations
impl Debug for DescriptorMatcher
[src][+]
impl Drop for DescriptorMatcher
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for DescriptorMatcher
impl !Send for DescriptorMatcher
impl !Sync for DescriptorMatcher
impl Unpin for DescriptorMatcher
impl UnwindSafe for DescriptorMatcher
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,