Package boofcv.alg.filter.binary
Class ContourOps
java.lang.Object
boofcv.alg.filter.binary.ContourOps
Operations related to contours
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static boolean
isTouchBorder
(List<Point2D_I32> contour, int width, int height) Returns true if the contour touches the image border
-
Constructor Details
-
ContourOps
public ContourOps()
-
-
Method Details
-
isEquivalent
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
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
-