opencv::stitching::prelude

Trait Detail_FeaturesMatcherTrait

Source
pub trait Detail_FeaturesMatcherTrait: Detail_FeaturesMatcherTraitConst {
    // Required method
    fn as_raw_mut_Detail_FeaturesMatcher(&mut self) -> *mut c_void;

    // Provided methods
    fn apply(
        &mut self,
        features1: &impl Detail_ImageFeaturesTraitConst,
        features2: &impl Detail_ImageFeaturesTraitConst,
        matches_info: &mut impl Detail_MatchesInfoTrait,
    ) -> Result<()> { ... }
    fn apply2(
        &mut self,
        features: &Vector<Detail_ImageFeatures>,
        pairwise_matches: &mut Vector<Detail_MatchesInfo>,
        mask: &impl UMatTraitConst,
    ) -> Result<()> { ... }
    fn apply2_def(
        &mut self,
        features: &Vector<Detail_ImageFeatures>,
        pairwise_matches: &mut Vector<Detail_MatchesInfo>,
    ) -> Result<()> { ... }
    fn collect_garbage(&mut self) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn apply( &mut self, features1: &impl Detail_ImageFeaturesTraitConst, features2: &impl Detail_ImageFeaturesTraitConst, matches_info: &mut impl Detail_MatchesInfoTrait, ) -> Result<()>

Performs images matching.

§Parameters
  • features: Features of the source images
  • pairwise_matches: Found pairwise matches
  • mask: Mask indicating which image pairs must be matched

The function is parallelized with the TBB library.

§See also

detail::MatchesInfo

§Overloaded parameters
  • features1: First image features
  • features2: Second image features
  • matches_info: Found matches
Source

fn apply2( &mut self, features: &Vector<Detail_ImageFeatures>, pairwise_matches: &mut Vector<Detail_MatchesInfo>, mask: &impl UMatTraitConst, ) -> Result<()>

Performs images matching.

§Parameters
  • features: Features of the source images
  • pairwise_matches: Found pairwise matches
  • mask: Mask indicating which image pairs must be matched

The function is parallelized with the TBB library.

§See also

detail::MatchesInfo

§C++ default parameters
  • mask: cv::UMat()
Source

fn apply2_def( &mut self, features: &Vector<Detail_ImageFeatures>, pairwise_matches: &mut Vector<Detail_MatchesInfo>, ) -> Result<()>

Performs images matching.

§Parameters
  • features: Features of the source images
  • pairwise_matches: Found pairwise matches
  • mask: Mask indicating which image pairs must be matched

The function is parallelized with the TBB library.

§See also

detail::MatchesInfo

§Note

This alternative version of Detail_FeaturesMatcherTrait::apply2 function uses the following default values for its arguments:

  • mask: cv::UMat()
Source

fn collect_garbage(&mut self) -> Result<()>

Frees unused memory allocated before if there is any.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§