Catalano.Math.Geometry
Class ConvexHullDefects
- java.lang.Object
-
- Catalano.Math.Geometry.ConvexHullDefects
-
public class ConvexHullDefects extends java.lang.ObjectConvex Hull Defects Extractor.
-
-
Constructor Summary
Constructors Constructor and Description ConvexHullDefects(double minimumDepth)Initializes a new instance of the ConvexHullDefects class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<ConvexityDefect>FindDefects(java.util.List<IntPoint> contour, java.util.List<IntPoint> convexHull)Finds the convexity defects in a contour given a convex hull.doublegetMinimumDepth()Gets the minimum depth which characterizes a convexity defect.voidsetMinimumDepth(double minimumDepth)Sets the minimum depth which characterizes a convexity defect.
-
-
-
Constructor Detail
-
ConvexHullDefects
public ConvexHullDefects(double minimumDepth)
Initializes a new instance of the ConvexHullDefects class.- Parameters:
minimumDepth- The minimum depth which characterizes a convexity defect.
-
-
Method Detail
-
getMinimumDepth
public double getMinimumDepth()
Gets the minimum depth which characterizes a convexity defect.- Returns:
- Depth.
-
setMinimumDepth
public void setMinimumDepth(double minimumDepth)
Sets the minimum depth which characterizes a convexity defect.- Parameters:
minimumDepth- Minimum depth.
-
FindDefects
public java.util.List<ConvexityDefect> FindDefects(java.util.List<IntPoint> contour, java.util.List<IntPoint> convexHull)
Finds the convexity defects in a contour given a convex hull.- Parameters:
contour- The contour.convexHull- The convex hull of the contour.- Returns:
- A list of ConvexityDefects containing each of the defects found considering the convex hull of the contour.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG