Package boofcv.alg.filter.binary
Class ContourOps
- java.lang.Object
-
- boofcv.alg.filter.binary.ContourOps
-
public class ContourOps extends java.lang.ObjectOperations related to contours
-
-
Constructor Summary
Constructors Constructor Description ContourOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEquivalent(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 booleanisTouchBorder(java.util.List<georegression.struct.point.Point2D_I32> contour, int width, int height)Returns true if the contour touches the image border
-
-
-
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 contourcontourB- 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 contourwidth- Image widthheight- Image height- Returns:
- true if it touches or false if it doesn't
-
-