Class ImgDHash


public class ImgDHash extends AbstractImgHash
Class which implements the DHash (difference hash) algorithm to create hashes of images.
Since:
1.0.6 - 2018-10-09
Author:
hypfvieh
  • Method Details

    • computeHash

      public static String computeHash(File _image) throws IOException
      Compute the DHash of the given file (which should be a valid image).
      Parameters:
      _image - image to hash
      Returns:
      hash string
      Throws:
      IOException - on any error when reading file