public class ImgPHash extends AbstractImgHash
Class which implements PHash (perceptual 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 PHash 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