Class ImageUtil

java.lang.Object
com.recognition.software.jdeskew.ImageUtil

public class ImageUtil extends Object
  • Constructor Details

    • ImageUtil

      public ImageUtil()
  • Method Details

    • isBlack

      public static boolean isBlack(BufferedImage image, int x, int y)
      Whether the pixel is black.
      Parameters:
      image - source image
      x -
      y -
      Returns:
    • isBlack

      public static boolean isBlack(BufferedImage image, int x, int y, int luminanceCutOff)
      Whether the pixel is black.
      Parameters:
      image - source image
      x -
      y -
      luminanceCutOff -
      Returns:
    • rotate

      public static BufferedImage rotate(BufferedImage image, double angle, int cx, int cy)
      Rotates image.
      Parameters:
      image - source image
      angle - by degrees
      cx - x-coordinate of pivot point
      cy - y-coordinate of pivot point
      Returns:
      rotated image