[][src]Trait opencv::hub_prelude::StandardCollectorTrait

pub trait StandardCollectorTrait: PredictCollector {
    fn as_raw_StandardCollector(&self) -> *const c_void;
fn as_raw_mut_StandardCollector(&mut self) -> *mut c_void; fn init(&mut self, size: size_t) -> Result<()> { ... }
fn collect(&mut self, label: i32, dist: f64) -> Result<bool> { ... }
fn get_min_label(&self) -> Result<i32> { ... }
fn get_min_dist(&self) -> Result<f64> { ... } }

Default predict collector

Trace minimal distance with treshhold checking (that is default behavior for most predict logic)

Required methods

Loading content...

Provided methods

fn init(&mut self, size: size_t) -> Result<()>

overloaded interface method

fn collect(&mut self, label: i32, dist: f64) -> Result<bool>

overloaded interface method

fn get_min_label(&self) -> Result<i32>

Returns label with minimal distance

fn get_min_dist(&self) -> Result<f64>

Returns minimal distance value

Loading content...

Implementors

Loading content...