Class ContourOps

java.lang.Object
boofcv.alg.filter.binary.ContourOps

public class ContourOps
extends Object
Operations related to contours
  • Constructor Details

    • ContourOps

      public ContourOps()
  • Method Details

    • isEquivalent

      public static boolean isEquivalent​(List<Point2D_I32> contourA, List<Point2D_I32> contourB)
      Checks to see if the two contours are equivalent up to a shift in order.
      Parameters:
      contourA - First contour
      contourB - Second contour
      Returns:
      true if equivalent
    • isTouchBorder

      public static boolean isTouchBorder​(List<Point2D_I32> contour, int width, int height)
      Returns true if the contour touches the image border
      Parameters:
      contour - the contour
      width - Image width
      height - Image height
      Returns:
      true if it touches or false if it doesn't