[][src]Struct opencv::stitching::Detail_BestOf2NearestMatcher

pub struct Detail_BestOf2NearestMatcher { /* fields omitted */ }

Features matcher which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf

See also

detail::FeaturesMatcher

Implementations

impl Detail_BestOf2NearestMatcher[src]

impl Detail_BestOf2NearestMatcher[src]

pub fn new(
    try_use_gpu: bool,
    match_conf: f32,
    num_matches_thresh1: i32,
    num_matches_thresh2: i32
) -> Result<Detail_BestOf2NearestMatcher>
[src]

Constructs a "best of 2 nearest" matcher.

Parameters

  • try_use_gpu: Should try to use GPU or not
  • match_conf: Match distances ration threshold
  • num_matches_thresh1: Minimum number of matches required for the 2D projective transform estimation used in the inliers classification step
  • num_matches_thresh2: Minimum number of matches required for the 2D projective transform re-estimation on inliers

C++ default parameters

  • try_use_gpu: false
  • match_conf: 0.3f
  • num_matches_thresh1: 6
  • num_matches_thresh2: 6

pub fn create(
    try_use_gpu: bool,
    match_conf: f32,
    num_matches_thresh1: i32,
    num_matches_thresh2: i32
) -> Result<Ptr<Detail_BestOf2NearestMatcher>>
[src]

C++ default parameters

  • try_use_gpu: false
  • match_conf: 0.3f
  • num_matches_thresh1: 6
  • num_matches_thresh2: 6

Trait Implementations

impl Boxed for Detail_BestOf2NearestMatcher[src]

impl Detail_BestOf2NearestMatcherTrait for Detail_BestOf2NearestMatcher[src]

impl Detail_FeaturesMatcher for Detail_BestOf2NearestMatcher[src]

impl Drop for Detail_BestOf2NearestMatcher[src]

impl Send for Detail_BestOf2NearestMatcher[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.