[][src]Struct opencv::stitching::Detail_AffineBestOf2NearestMatcher

pub struct Detail_AffineBestOf2NearestMatcher { /* fields omitted */ }

Features matcher similar to cv::detail::BestOf2NearestMatcher 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.

Unlike cv::detail::BestOf2NearestMatcher this matcher uses affine transformation (affine transformation estimate will be placed in matches_info).

See also

cv::detail::FeaturesMatcher cv::detail::BestOf2NearestMatcher

Implementations

impl Detail_AffineBestOf2NearestMatcher[src]

impl Detail_AffineBestOf2NearestMatcher[src]

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

Constructs a "best of 2 nearest" matcher that expects affine transformation between images

Parameters

  • full_affine: whether to use full affine transformation with 6 degress of freedom or reduced transformation with 4 degrees of freedom using only rotation, translation and uniform scaling
  • 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 affine transform estimation used in the inliers classification step

See also

cv::estimateAffine2D cv::estimateAffinePartial2D

C++ default parameters

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

Trait Implementations

impl Boxed for Detail_AffineBestOf2NearestMatcher[src]

impl Detail_AffineBestOf2NearestMatcherTrait for Detail_AffineBestOf2NearestMatcher[src]

impl Detail_BestOf2NearestMatcherTrait for Detail_AffineBestOf2NearestMatcher[src]

impl Detail_FeaturesMatcher for Detail_AffineBestOf2NearestMatcher[src]

impl Drop for Detail_AffineBestOf2NearestMatcher[src]

impl Send for Detail_AffineBestOf2NearestMatcher[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.