Table of Contents

Class ContourConvexity

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Provides the result of a convexity analysis of a polygonal contour, representing the deviations between each point in the contour and its convex hull.

public class ContourConvexity
Inheritance
ContourConvexity
Inherited Members

Constructors

ContourConvexity(Contour, Seq, Seq)

Initializes a new instance of the ContourConvexity class using the specified contour, convex hull and corresponding convexity defects.

public ContourConvexity(Contour contour, Seq convexHull, Seq convexityDefects)

Parameters

contour Contour

The polygonal contour from which the convex hull and convexity defects were calculated.

convexHull Seq

A sequence containing the points in the convex hull of the polygonal contour.

convexityDefects Seq

A sequence of OpenCV.Net.ConvexityDefect structures representing the deviations between each point in the polygonal contour and its convex hull.

Properties

Contour

Gets the polygonal contour from which the convex hull and convexity defects were calculated.

public Contour Contour { get; }

Property Value

Contour

ConvexHull

Gets a sequence containing the points in the convex hull of the polygonal contour.

public Seq ConvexHull { get; }

Property Value

Seq

ConvexityDefects

Gets a sequence of OpenCV.Net.ConvexityDefect structures representing the deviations between each point in the polygonal contour and its convex hull.

public Seq ConvexityDefects { get; }

Property Value

Seq

See Also