Class ShapeDistanceExtractor
Abstract base class for shape distance algorithms.
Inheritance
System.Object
ShapeDistanceExtractor
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public abstract class ShapeDistanceExtractor : Algorithm, ICvPtrHolder
Methods
| Improve this Doc View SourceComputeDistance(InputArray, InputArray)
Compute the shape distance between two shapes defined by its contours.
Declaration
public virtual float ComputeDistance(InputArray contour1, InputArray contour2)
Parameters
Type | Name | Description |
---|---|---|
InputArray | contour1 | Contour defining first shape. |
InputArray | contour2 | Contour defining second shape. |
Returns
Type | Description |
---|---|
System.Single |