Struct cv::features2d::BOWKMeansTrainer[][src]

pub struct BOWKMeansTrainer { /* fields omitted */ }

K-means - based class to train visual vocabulary using the bag of visual words approach

Implementations

impl BOWKMeansTrainer[src]

pub fn new(
    cluster_count: i32,
    term_criteria: TermCriteria,
    attempts: i32,
    centers: KMeansCenters
) -> Self
[src]

Creates a new maximally stable extremal region extractor criteria.

pub fn add(&mut self, descriptors: &Mat)[src]

Adds descriptors to a training set

pub fn cluster(&mut self) -> Mat[src]

Clusters train descriptors

Trait Implementations

impl Debug for BOWKMeansTrainer[src]

impl Drop for BOWKMeansTrainer[src]

Auto Trait Implementations

impl RefUnwindSafe for BOWKMeansTrainer

impl !Send for BOWKMeansTrainer

impl !Sync for BOWKMeansTrainer

impl Unpin for BOWKMeansTrainer

impl UnwindSafe for BOWKMeansTrainer

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.