Class ContourConvexity
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
ContourThe polygonal contour from which the convex hull and convexity defects were calculated.
convexHull
SeqA sequence containing the points in the convex hull of the polygonal contour.
convexityDefects
SeqA 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
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; }