Class ContourOps


  • public class ContourOps
    extends java.lang.Object
    Operations related to contours
    • Constructor Summary

      Constructors 
      Constructor Description
      ContourOps()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEquivalent​(java.util.List<georegression.struct.point.Point2D_I32> contourA, java.util.List<georegression.struct.point.Point2D_I32> contourB)
      Checks to see if the two contours are equivalent up to a shift in order.
      static boolean isTouchBorder​(java.util.List<georegression.struct.point.Point2D_I32> contour, int width, int height)
      Returns true if the contour touches the image border
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContourOps

        public ContourOps()
    • Method Detail

      • isEquivalent

        public static boolean isEquivalent​(java.util.List<georegression.struct.point.Point2D_I32> contourA,
                                           java.util.List<georegression.struct.point.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​(java.util.List<georegression.struct.point.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