Class ImgDHash
java.lang.Object
com.github.hypfvieh.imaging.AbstractImgHash
com.github.hypfvieh.imaging.ImgDHash
Class which implements the DHash (difference hash) algorithm to create hashes of images.
- Since:
- 1.0.6 - 2018-10-09
- Author:
- hypfvieh
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomputeHash(File _image) Compute the DHash of the given file (which should be a valid image).Methods inherited from class AbstractImgHash
bitmaskToHex, createPixelArray, createPixelArrayMatrix, resizeAndGrayScale
-
Method Details
-
computeHash
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
-