Table of Contents

Class ShapeDistanceExtractor

Namespace
Emgu.CV.Shape
Assembly
Emgu.CV.dll

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

nint

Methods

ComputeDistance(IInputArray, IInputArray)

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

public float ComputeDistance(IInputArray contour1, IInputArray contour2)

Parameters

contour1 IInputArray

Contour defining first shape

contour2 IInputArray

Contour 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

contour1 Point[]

Contour defining first shape

contour2 Point[]

Contour defining second shape

Returns

float

The shape distance between two shapes defined by its contours.

DisposeObject()

Release all memory associated with this ShapeDistanceExtractor

protected override void DisposeObject()