Table of Contents

Method MatchShapes

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

MatchShapes(InputArray, InputArray, ShapeMatchModes, double)

Compares two shapes.

public static double MatchShapes(InputArray contour1, InputArray contour2, ShapeMatchModes method, double parameter = 0)

Parameters

contour1 InputArray

First contour or grayscale image.

contour2 InputArray

Second contour or grayscale image.

method ShapeMatchModes

Comparison method

parameter double

Method-specific parameter (not supported now)

Returns

double

MatchShapes(IEnumerable<Point>, IEnumerable<Point>, ShapeMatchModes, double)

Compares two shapes.

public static double MatchShapes(IEnumerable<Point> contour1, IEnumerable<Point> contour2, ShapeMatchModes method, double parameter = 0)

Parameters

contour1 IEnumerable<Point>

First contour or grayscale image.

contour2 IEnumerable<Point>

Second contour or grayscale image.

method ShapeMatchModes

Comparison method

parameter double

Method-specific parameter (not supported now)

Returns

double