Class ConsecutiveMatcher

  • All Implemented Interfaces:
    Serializable

    public class ConsecutiveMatcher
    extends PersitentBinaryTreeMatcher
    Convenience class allowing to chain multiple hashing algorithms to find similar images. The ConsecutiveMatcher keeps the hashes and buffered images in cache.
    Author:
    Kilian
    See Also:
    Serialized Form
    • Constructor Detail

      • ConsecutiveMatcher

        public ConsecutiveMatcher​(boolean cacheAddedHashes)
        Parameters:
        cacheAddedHashes - Additionally to the binary tree, hashes of added images will be mapped to their uniqueId allowing to retrieve matches of added images without loading the image file from disk. This setting increases memory overhead in exchange for performance.

        Use this setting if calls to PersitentBinaryTreeMatcher.getMatchingImages(java.io.File) likely contains an image already added to the match prior.