Interface CropAlgorithm<T>

    • Method Detail

      • crop

        T crop​(T img)
        Crops the image.
        Parameters:
        img - the image to crop
        Returns:
        the (potentially) cropped image
      • getTopLeft

        Point getTopLeft()
        Returns the top-left coordinates of the cropped image in the original image.
        Returns:
        the top-left corner
      • getBottomRight

        Point getBottomRight()
        Returns the bottom-right coordinates of the cropped image in the original image.
        Returns:
        the bottom-right corner