Klasse AbstractImgHash

java.lang.Object
com.github.hypfvieh.imaging.AbstractImgHash
Bekannte direkte Unterklassen:
ImgAHash, ImgDHash, ImgPHash

public abstract class AbstractImgHash extends Object
  • Konstruktordetails

    • AbstractImgHash

      public AbstractImgHash()
  • Methodendetails

    • createPixelArray

      protected int[] createPixelArray(BufferedImage _image)
      Convert the given image to an array of integer, where each array entry represents one pixel. The image is read from top to bottom, left to right.
      Parameter:
      _image - image
      Gibt zurück:
      int array or null if _image is null
    • createPixelArrayMatrix

      protected double[][] createPixelArrayMatrix(BufferedImage _image)
      Creates a pixel array matrix from the given image.
      Parameter:
      _image - image
      Gibt zurück:
      array of double array or null if _image is null
    • resizeAndGrayScale

      protected BufferedImage resizeAndGrayScale(int _width, int _height, BufferedImage _input)
      Convert the given image to grayscale and resize it to the given scale. Will return a new BufferedImage instance.
      Parameter:
      _width - width
      _height - heigth
      _input - input image
      Gibt zurück:
      BufferedImage or null if _input is null
    • bitmaskToHex

      protected String bitmaskToHex(boolean[] bitMask, int _minLen)
      Converts a bitmask (array of boolean) to a hex string.
      Parameter:
      bitMask - mask
      _minLen - length
      Gibt zurück:
      string