Trait HausdorffDistanceExtractorTrait

Source
pub trait HausdorffDistanceExtractorTrait: HausdorffDistanceExtractorTraitConst + ShapeDistanceExtractorTrait {
    // Required method
    fn as_raw_mut_HausdorffDistanceExtractor(&mut self) -> *mut c_void;

    // Provided methods
    fn set_distance_flag(&mut self, distance_flag: i32) -> Result<()> { ... }
    fn set_rank_proportion(&mut self, rank_proportion: f32) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

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).
Source

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).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§