Class SingleImageMatcher
- java.lang.Object
-
- dev.brachtendorf.jimagehash.matcher.TypedImageMatcher
-
- dev.brachtendorf.jimagehash.matcher.exotic.SingleImageMatcher
-
public class SingleImageMatcher extends TypedImageMatcher
Convenience class to chain multiple hashing algorithms to check if two images are similar. In order for images to be considered similar all supplied hashing algorithms have to agree that the images match.- Author:
- Kilian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class dev.brachtendorf.jimagehash.matcher.TypedImageMatcher
TypedImageMatcher.AlgoSettings
-
-
Field Summary
-
Fields inherited from class dev.brachtendorf.jimagehash.matcher.TypedImageMatcher
steps
-
-
Constructor Summary
Constructors Constructor Description SingleImageMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckSimilarity(BufferedImage image, BufferedImage image1)Execute all supplied hashing algorithms in the order they were supplied and check if the images are similarbooleancheckSimilarity(File image, File image1)Execute all supplied hashing algorithms in the order they were supplied and check if the images are similar-
Methods inherited from class dev.brachtendorf.jimagehash.matcher.TypedImageMatcher
addHashingAlgorithm, addHashingAlgorithm, clearHashingAlgorithms, equals, getAlgorithms, hashCode, removeHashingAlgo
-
-
-
-
Method Detail
-
checkSimilarity
public boolean checkSimilarity(File image, File image1) throws IOException
Execute all supplied hashing algorithms in the order they were supplied and check if the images are similar- Parameters:
image- First input imageimage1- Second input image- Returns:
- true if images are considered similar
- Throws:
IOException- if an error occurred during image loading- See Also:
checkSimilarity(BufferedImage, BufferedImage)
-
checkSimilarity
public boolean checkSimilarity(BufferedImage image, BufferedImage image1)
Execute all supplied hashing algorithms in the order they were supplied and check if the images are similar- Parameters:
image- First input imageimage1- Second input image- Returns:
- true if images are considered similar
-
-