Class ShapeDistanceExtractor
Abstract base class for shape distance algorithms.
public abstract class ShapeDistanceExtractor : SharedPtrObject, IDisposable
- Inheritance
-
ShapeDistanceExtractor
- Implements
- Derived
- Inherited Members
Constructors
ShapeDistanceExtractor()
protected ShapeDistanceExtractor()
Fields
_shapeDistanceExtractorPtr
Pointer to the unmanaged ShapeDistanceExtractor
protected nint _shapeDistanceExtractorPtr
Field Value
Methods
ComputeDistance(IInputArray, IInputArray)
Compute the shape distance between two shapes defined by its contours.
public float ComputeDistance(IInputArray contour1, IInputArray contour2)
Parameters
contour1
IInputArrayContour defining first shape
contour2
IInputArrayContour defining second shape
Returns
- float
The shape distance between two shapes defined by its contours.
ComputeDistance(Point[], Point[])
Compute the shape distance between two shapes defined by its contours.
public float ComputeDistance(Point[] contour1, Point[] contour2)
Parameters
Returns
- float
The shape distance between two shapes defined by its contours.
DisposeObject()
Release all memory associated with this ShapeDistanceExtractor
protected override void DisposeObject()