[][src]Trait opencv::hub_prelude::ShapeDistanceExtractor

pub trait ShapeDistanceExtractor: AlgorithmTrait {
    pub fn as_raw_ShapeDistanceExtractor(&self) -> *const c_void;
pub fn as_raw_mut_ShapeDistanceExtractor(&mut self) -> *mut c_void; pub fn compute_distance(
        &mut self,
        contour1: &dyn ToInputArray,
        contour2: &dyn ToInputArray
    ) -> Result<f32> { ... } }

@example modules/shape/samples/shape_example.cpp An example using shape distance algorithm

Abstract base class for shape distance algorithms.

Required methods

Loading content...

Provided methods

pub fn compute_distance(
    &mut self,
    contour1: &dyn ToInputArray,
    contour2: &dyn ToInputArray
) -> Result<f32>
[src]

Compute the shape distance between two shapes defined by its contours.

Parameters

  • contour1: Contour defining first shape.
  • contour2: Contour defining second shape.
Loading content...

Implementors

Loading content...