Package boofcv.abst.filter.binary
Class BinaryContourHelper
- java.lang.Object
-
- boofcv.abst.filter.binary.BinaryContourHelper
-
public class BinaryContourHelper extends java.lang.ObjectHelper function that makes it easier to adjust the size of the binary image when working with a padded or unpadded contour finding algorithm. Creating a copy of the input image can be avoided when finding contours if the binary image is expanded to have a contour in advance. Slight speed improvement and lower memory usage.
-
-
Constructor Summary
Constructors Constructor Description BinaryContourHelper(BinaryContourInterface alg, boolean copyBinary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boofcv.struct.image.GrayU8padded()Returns the binary image with paddingvoidreshape(int width, int height)Reshapes data so that the un-padded image has the specified shape.boofcv.struct.image.GrayU8withoutPadding()Returns the image without padding.
-
-
-
Constructor Detail
-
BinaryContourHelper
public BinaryContourHelper(BinaryContourInterface alg, boolean copyBinary)
-
-
Method Detail
-
reshape
public void reshape(int width, int height)Reshapes data so that the un-padded image has the specified shape.
-
padded
public boofcv.struct.image.GrayU8 padded()
Returns the binary image with padding
-
withoutPadding
public boofcv.struct.image.GrayU8 withoutPadding()
Returns the image without padding. This might be a sub-image
-
-