Trait opencv::features2d::BOWTrainer[][src]

pub trait BOWTrainer: BOWTrainerConst {
    fn as_raw_mut_BOWTrainer(&mut self) -> *mut c_void;

    fn add(&mut self, descriptors: &Mat) -> Result<()> { ... }
fn clear(&mut self) -> Result<()> { ... } }

Required methods

Provided methods

Adds descriptors to a training set.

Parameters
  • descriptors: Descriptors to add to a training set. Each row of the descriptors matrix is a descriptor.

The training set is clustered using clustermethod to construct the vocabulary.

Implementors