Trait opencv::hub_prelude::HausdorffDistanceExtractor [−][src]
pub trait HausdorffDistanceExtractor: HausdorffDistanceExtractorConst + ShapeDistanceExtractor {
fn as_raw_mut_HausdorffDistanceExtractor(&mut self) -> *mut c_void;
fn set_distance_flag(&mut self, distance_flag: i32) -> Result<()> { ... }
fn set_rank_proportion(&mut self, rank_proportion: f32) -> Result<()> { ... }
}
Required methods
fn as_raw_mut_HausdorffDistanceExtractor(&mut self) -> *mut c_void
Provided methods
fn set_distance_flag(&mut self, distance_flag: i32) -> Result<()>
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 set_rank_proportion(&mut self, rank_proportion: f32) -> Result<()>
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).