pub trait ShapeDistanceExtractorTrait: AlgorithmTrait + ShapeDistanceExtractorTraitConst {
// Required method
fn as_raw_mut_ShapeDistanceExtractor(&mut self) -> *mut c_void;
// Provided method
fn compute_distance(
&mut self,
contour1: &impl ToInputArray,
contour2: &impl ToInputArray,
) -> Result<f32> { ... }
}
Expand description
Mutable methods for crate::shape::ShapeDistanceExtractor
Required Methods§
fn as_raw_mut_ShapeDistanceExtractor(&mut self) -> *mut c_void
Provided Methods§
Sourcefn compute_distance(
&mut self,
contour1: &impl ToInputArray,
contour2: &impl ToInputArray,
) -> Result<f32>
fn compute_distance( &mut self, contour1: &impl ToInputArray, contour2: &impl 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.
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.