[−][src]Trait opencv::shape::HausdorffDistanceExtractor
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
fn as_raw_HausdorffDistanceExtractor(&self) -> *mut c_void
Provided methods
fn set_distance_flag(&mut self, distance_flag: i32) -> Result<()>
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).
fn get_distance_flag(&self) -> Result<i32>
fn set_rank_proportion(&mut self, rank_proportion: f32) -> Result<()>
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).