[][src]Trait opencv::hub_prelude::HausdorffDistanceExtractor

pub trait HausdorffDistanceExtractor: ShapeDistanceExtractor {
    pub fn as_raw_HausdorffDistanceExtractor(&self) -> *const c_void;
pub fn as_raw_mut_HausdorffDistanceExtractor(&mut self) -> *mut c_void; pub fn set_distance_flag(&mut self, distance_flag: i32) -> Result<()> { ... }
pub fn get_distance_flag(&self) -> Result<i32> { ... }
pub fn set_rank_proportion(&mut self, rank_proportion: f32) -> Result<()> { ... }
pub fn get_rank_proportion(&self) -> Result<f32> { ... } }

/ / A simple Hausdorff distance measure between shapes defined by contours

according to the paper "Comparing Images using the Hausdorff distance." by D.P. Huttenlocher, G.A. Klanderman, and W.J. Rucklidge. (PAMI 1993). :

Required methods

Loading content...

Provided methods

pub fn set_distance_flag(&mut self, distance_flag: i32) -> Result<()>[src]

Set the norm used to compute the Hausdorff value between two shapes. It can be L1 or L2 norm.

Parameters

  • distanceFlag: Flag indicating which norm is used to compute the Hausdorff distance (NORM_L1, NORM_L2).

pub fn get_distance_flag(&self) -> Result<i32>[src]

pub fn set_rank_proportion(&mut self, rank_proportion: f32) -> Result<()>[src]

This method sets the rank proportion (or fractional value) that establish the Kth ranked value of the partial Hausdorff distance. Experimentally had been shown that 0.6 is a good value to compare shapes.

Parameters

  • rankProportion: fractional value (between 0 and 1).

pub fn get_rank_proportion(&self) -> Result<f32>[src]

Loading content...

Implementors

Loading content...