[−][src]Trait opencv::shape::ShapeDistanceExtractor
Abstract base class for shape distance algorithms.
Required methods
fn as_raw_ShapeDistanceExtractor(&self) -> *mut c_void
Provided methods
fn compute_distance(
&mut self,
contour1: &dyn ToInputArray,
contour2: &dyn ToInputArray
) -> Result<f32>
&mut self,
contour1: &dyn ToInputArray,
contour2: &dyn ToInputArray
) -> Result<f32>
Compute the shape distance between two shapes defined by its contours.
Parameters
- contour1: Contour defining first shape.
- contour2: Contour defining second shape.