[][src]Trait opencv::text::prelude::ERFilter_Callback

pub trait ERFilter_Callback {
    pub fn as_raw_ERFilter_Callback(&self) -> *const c_void;
pub fn as_raw_mut_ERFilter_Callback(&mut self) -> *mut c_void; pub fn eval(&mut self, stat: &ERStat) -> Result<f64> { ... } }

Callback with the classifier is made a class.

By doing it we hide SVM, Boost etc. Developers can provide their own classifiers to the ERFilter algorithm.

Required methods

Loading content...

Provided methods

pub fn eval(&mut self, stat: &ERStat) -> Result<f64>[src]

The classifier must return probability measure for the region.

Parameters

  • stat: : The region to be classified
Loading content...

Implementors

Loading content...