[][src]Struct opencv::features2d::BOWImgDescriptorExtractor

pub struct BOWImgDescriptorExtractor { /* fields omitted */ }

Class to compute an image descriptor using the bag of visual words.

Such a computation consists of the following steps:

  1. Compute descriptors for a given image and its keypoints set.
  2. Find the nearest visual words from the vocabulary for each keypoint descriptor.
  3. Compute the bag-of-words image descriptor as is a normalized histogram of vocabulary words encountered in the image. The i-th bin of the histogram is a frequency of i-th word of the vocabulary in the given image.

Implementations

impl BOWImgDescriptorExtractor[src]

impl BOWImgDescriptorExtractor[src]

pub fn new(
    dextractor: &Ptr<Feature2D>,
    dmatcher: &Ptr<dyn DescriptorMatcher>
) -> Result<BOWImgDescriptorExtractor>
[src]

The constructor.

Parameters

  • dextractor: Descriptor extractor that is used to compute descriptors for an input image and its keypoints.
  • dmatcher: Descriptor matcher that is used to find the nearest word of the trained vocabulary for each keypoint descriptor of the image.

pub fn new_1(
    dmatcher: &Ptr<dyn DescriptorMatcher>
) -> Result<BOWImgDescriptorExtractor>
[src]

The constructor.

Parameters

  • dextractor: Descriptor extractor that is used to compute descriptors for an input image and its keypoints.
  • dmatcher: Descriptor matcher that is used to find the nearest word of the trained vocabulary for each keypoint descriptor of the image.

Overloaded parameters

Trait Implementations

impl BOWImgDescriptorExtractorTrait for BOWImgDescriptorExtractor[src]

impl Boxed for BOWImgDescriptorExtractor[src]

impl Drop for BOWImgDescriptorExtractor[src]

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