Class 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
    • Constructor Detail

      • SingleImageMatcher

        public SingleImageMatcher()
    • 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 image
        image1 - 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 image
        image1 - Second input image
        Returns:
        true if images are considered similar