Class BinaryContourHelper


  • public class BinaryContourHelper
    extends java.lang.Object
    Helper 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boofcv.struct.image.GrayU8 padded()
      Returns the binary image with padding
      void reshape​(int width, int height)
      Reshapes data so that the un-padded image has the specified shape.
      boofcv.struct.image.GrayU8 withoutPadding()
      Returns the image without padding.
      • Methods inherited from class java.lang.Object

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

    • 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