public class ConvexHullDefects
extends java.lang.Object
| Constructor and Description |
|---|
ConvexHullDefects(double minimumDepth)
Initializes a new instance of the ConvexHullDefects class.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<ConvexityDefect> |
FindDefects(java.util.ArrayList<IntPoint> contour,
java.util.ArrayList<IntPoint> convexHull)
Finds the convexity defects in a contour given a convex hull.
|
double |
getMinimumDepth()
Gets the minimum depth which characterizes a convexity defect.
|
void |
setMinimumDepth(double minimumDepth)
Sets the minimum depth which characterizes a convexity defect.
|
public ConvexHullDefects(double minimumDepth)
minimumDepth - The minimum depth which characterizes a convexity defect.public double getMinimumDepth()
public void setMinimumDepth(double minimumDepth)
minimumDepth - Minimum depth.public java.util.ArrayList<ConvexityDefect> FindDefects(java.util.ArrayList<IntPoint> contour, java.util.ArrayList<IntPoint> convexHull)
contour - The contour.convexHull - The convex hull of the contour.