Table of Contents

Class ShapeDistanceExtractor

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Abstract base class for shape distance algorithms.

public abstract class ShapeDistanceExtractor : Algorithm, IDisposable
Inheritance
ShapeDistanceExtractor
Implements
Derived
Inherited Members

Constructors

ShapeDistanceExtractor(nint, nint, Action<nint>)

Constructor for the factory pattern (cv::Ptr<T>* + raw T*).

protected ShapeDistanceExtractor(nint smartPtr, nint rawPtr, Action<nint> release)

Parameters

smartPtr nint
rawPtr nint
release Action<nint>

Methods

ComputeDistance(InputArray, InputArray)

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

public virtual float ComputeDistance(InputArray contour1, InputArray contour2)

Parameters

contour1 InputArray

Contour defining first shape.

contour2 InputArray

Contour defining second shape.

Returns

float