Class BinaryContourHelper

java.lang.Object
boofcv.abst.filter.binary.BinaryContourHelper

public class BinaryContourHelper
extends 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.
  • Constructor Details

  • Method Details

    • reshape

      public void reshape​(int width, int height)
      Reshapes data so that the un-padded image has the specified shape.
    • padded

      public GrayU8 padded()
      Returns the binary image with padding
    • withoutPadding

      public GrayU8 withoutPadding()
      Returns the image without padding. This might be a sub-image