C# Class Accord.Math.Geometry.ConvexHullDefects

Convex Hull Defects Extractor.
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
ConvexHullDefects ( double minDepth ) : System

Initializes a new instance of the ConvexHullDefects class.

FindDefects ( List contour, List convexHull ) : List

Finds the convexity defects in a contour given a convex hull.

Private Methods

Method Description
extractDefect ( List contour, int startIndex, int endIndex ) : ConvexityDefect

Method Details

ConvexHullDefects() public method

Initializes a new instance of the ConvexHullDefects class.
public ConvexHullDefects ( double minDepth ) : System
minDepth double The minimum depth which characterizes a convexity defect.
return System

FindDefects() public method

Finds the convexity defects in a contour given a convex hull.
public FindDefects ( List contour, List convexHull ) : List
contour List The contour.
convexHull List The convex hull of the contour.
return List