Documentation of 'Catalano.Math.Geometry.ConvexHullDefects' Java class
ConvexHullDefects
Catalano.Math.Geometry

Class ConvexHullDefects



  • public class ConvexHullDefects
    extends java.lang.Object
    Convex 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.
      double getMinimumDepth()
      Gets the minimum depth which characterizes a convexity defect.
      void setMinimumDepth(double minimumDepth)
      Sets the minimum depth which characterizes a convexity defect.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

Ads help maintain this website.