StandardCollectorTraitConst

Trait StandardCollectorTraitConst 

Source
pub trait StandardCollectorTraitConst: PredictCollectorTraitConst {
    // Required method
    fn as_raw_StandardCollector(&self) -> *const c_void;

    // Provided methods
    fn get_min_label(&self) -> Result<i32> { ... }
    fn get_min_dist(&self) -> Result<f64> { ... }
    fn get_results(&self, sorted: bool) -> Result<Vector<Tuple<(i32, f64)>>> { ... }
    fn get_results_def(&self) -> Result<Vector<Tuple<(i32, f64)>>> { ... }
}
Expand description

Constant methods for crate::face::StandardCollector

Required Methods§

Provided Methods§

Source

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

Returns label with minimal distance

Source

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

Returns minimal distance value

Source

fn get_results(&self, sorted: bool) -> Result<Vector<Tuple<(i32, f64)>>>

Return results as vector

§Parameters
  • sorted: If set, results will be sorted by distance Each values is a pair of label and distance.
§C++ default parameters
  • sorted: false
Source

fn get_results_def(&self) -> Result<Vector<Tuple<(i32, f64)>>>

Return results as vector

§Parameters
  • sorted: If set, results will be sorted by distance Each values is a pair of label and distance.
§Note

This alternative version of StandardCollectorTraitConst::get_results function uses the following default values for its arguments:

  • sorted: false

Implementors§