Uses of Class
dev.brachtendorf.jimagehash.hashAlgorithms.HashingAlgorithm
-
Packages that use HashingAlgorithm Package Description dev.brachtendorf.jimagehash.hash dev.brachtendorf.jimagehash.hashAlgorithms Hashing algorithms convert images to a hash representation enabling an approximate similarity measurement without storing much data.dev.brachtendorf.jimagehash.hashAlgorithms.experimental Experimental hashing algorithms are not ready to be used just yet.dev.brachtendorf.jimagehash.matcher dev.brachtendorf.jimagehash.matcher.cached Cached image matchers allow to check images against a batch of previously added images keeping the buffered image object and hashes in memory.dev.brachtendorf.jimagehash.matcher.categorize The categorization package includes classes to group images into distinct groups based on their similarity.dev.brachtendorf.jimagehash.matcher.categorize.supervised.randomForest dev.brachtendorf.jimagehash.matcher.exotic Image matchers not fitting into specific categoriesdev.brachtendorf.jimagehash.matcher.persistent Persistent image matchers allow to check images against a batch of previously added images keeping only the created hashes coupled with a unique identifier of the image.dev.brachtendorf.jimagehash.matcher.persistent.database -
-
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.hash
Methods in dev.brachtendorf.jimagehash.hash with parameters of type HashingAlgorithm Modifier and Type Method Description static FuzzyHashHashUtil. toFuzzyHash(HashingAlgorithm hasher, BufferedImage... images)static FuzzyHashHashUtil. toFuzzyHash(HashingAlgorithm hasher, File... imageFiles)BufferedImageFuzzyHash. toImage(int blockSize, HashingAlgorithm hashingAlgorithm)BufferedImageHash. toImage(int blockSize, HashingAlgorithm hasher)Creates a visual representation of the hash mapping the hash values to the section of the rescaled image used to generate the hash. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.hashAlgorithms
Subclasses of HashingAlgorithm in dev.brachtendorf.jimagehash.hashAlgorithms Modifier and Type Class Description classAverageColorHashCalculate a hash value based on the average rgb color in an image.classAverageHashCalculate a hash value based on the average luminosity in an image.classAverageKernelHashCalculate a hash value based on the average luminosity in an image.classDifferenceHashCalculates a hash based on gradient tracking.classMedianHashCalculate a hash value based on the median luminosity in an image.classPerceptiveHashCalculate a hash based on the frequency of an image using the DCT T2.classRotAverageHashCalculate a hash value based on the average luminosity in an image after mapping each pixel to a rotational bucket.classRotPHashA rotational invariant hashing algorithm which is mostly immune to rotation attacks.classWaveletHashCalculate a hash based on iterative application of a haar wavelet on the luminosity values of the input image. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.hashAlgorithms.experimental
Subclasses of HashingAlgorithm in dev.brachtendorf.jimagehash.hashAlgorithms.experimental Modifier and Type Class Description classHogHashDeprecated.not ready to use yetclassHogHashAngularEncodedDeprecated.not ready to use yetclassHogHashDualDeprecated.not ready to use yet -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher
Fields in dev.brachtendorf.jimagehash.matcher with type parameters of type HashingAlgorithm Modifier and Type Field Description protected LinkedHashSet<HashingAlgorithm>PlainImageMatcher. stepsprotected LinkedHashMap<HashingAlgorithm,TypedImageMatcher.AlgoSettings>TypedImageMatcher. stepsContains multiple hashing algorithms applied in the order they were added to the image matcherMethods in dev.brachtendorf.jimagehash.matcher that return types with arguments of type HashingAlgorithm Modifier and Type Method Description Set<HashingAlgorithm>PlainImageMatcher. getAlgorithms()Map<HashingAlgorithm,TypedImageMatcher.AlgoSettings>TypedImageMatcher. getAlgorithms()Return an immutable map copy of the algorithms currently used in the matcher.Methods in dev.brachtendorf.jimagehash.matcher with parameters of type HashingAlgorithm Modifier and Type Method Description booleanPlainImageMatcher. addHashingAlgorithm(HashingAlgorithm hashingAlgorithm)Append a new hashing algorithm to be used by this matcher.voidTypedImageMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold)Append a new hashing algorithm which will be executed after all hash algorithms passed the test.voidTypedImageMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold, boolean normalized)Append a new hashing algorithm which will be executed after all hash algorithms passed the test.booleanTypedImageMatcher. removeHashingAlgo(HashingAlgorithm algo)Removes the hashing algorithms from the image matcher.booleanPlainImageMatcher. removeHashingAlgorithm(HashingAlgorithm hashingAlgorithm)Remove a hashing algorithm from this matcher. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher.cached
Fields in dev.brachtendorf.jimagehash.matcher.cached with type parameters of type HashingAlgorithm Modifier and Type Field Description protected HashMap<HashingAlgorithm,BinaryTree<BufferedImage>>ConsecutiveMatcher. binTreeMapBinary Tree holding results for each individual hashing algorithmMethods in dev.brachtendorf.jimagehash.matcher.cached that return types with arguments of type HashingAlgorithm Modifier and Type Method Description Map<HashingAlgorithm,TypedImageMatcher.AlgoSettings>ConsecutiveMatcher. getAlgorithms()Return an immutable map copy of the algorithms currently used in the matcher.Methods in dev.brachtendorf.jimagehash.matcher.cached with parameters of type HashingAlgorithm Modifier and Type Method Description voidConsecutiveMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold, boolean normalized)Append a new hashing algorithm which will be executed after all hash algorithms passed the test.voidCumulativeMatcher. addHashingAlgorithm(HashingAlgorithm algo)Add a hashing algorithm to the matcher with a weight multiplier of 1.voidCumulativeMatcher. addHashingAlgorithm(HashingAlgorithm algo, double weight)Add a hashing algorithm to the matcher with the given weight multiplier.voidCumulativeMatcher. addHashingAlgorithm(HashingAlgorithm algo, double weight, boolean dummy)Add a hashing algorithm to the matcher with the given weight multiplier.booleanConsecutiveMatcher. removeHashingAlgo(HashingAlgorithm algo)Removes the hashing algorithms from the image matcher. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher.categorize
Fields in dev.brachtendorf.jimagehash.matcher.categorize with type parameters of type HashingAlgorithm Modifier and Type Field Description protected Map<String,Map<HashingAlgorithm,Hash>>CategoricalMatcher. cachedHashesHashes of the added imagesprotected Map<HashingAlgorithm,Map<Integer,FuzzyHash>>CategoricalMatcher. clusterHashThe cluster centeroid of a given hashing algorithm and category.protected Map<HashingAlgorithm,Map<FuzzyHash,Integer>>CategoricalMatcher. clusterReverseLookupQuick lookup the category of a fuzzy cluster hashMethods in dev.brachtendorf.jimagehash.matcher.categorize with parameters of type HashingAlgorithm Modifier and Type Method Description booleanCategoricalMatcher. addHashingAlgorithm(HashingAlgorithm algo)booleanWeightedCategoricalMatcher. addHashingAlgorithm(HashingAlgorithm algo)BufferedImageCategoricalMatcher. categoricalHashToImage(HashingAlgorithm hashAlgorithm, int category, int blockSize)FuzzyHashCategoricalMatcher. getClusterAverageHash(HashingAlgorithm algorithm, int category)Get the average hash representing the midpoint of the category cluster.Constructors in dev.brachtendorf.jimagehash.matcher.categorize with parameters of type HashingAlgorithm Constructor Description KMeansClassifier(int k, HashingAlgorithm hasher) -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher.categorize.supervised.randomForest
Method parameters in dev.brachtendorf.jimagehash.matcher.categorize.supervised.randomForest with type arguments of type HashingAlgorithm Modifier and Type Method Description protected Object[]RandomForestCategorizer. createForest(int trees, int numVars, int numVarsRep, List<dev.brachtendorf.datastructures.Pair<FuzzyHash,HashingAlgorithm>> randomVariables, Map<HashingAlgorithm,Map<BufferedImage,Hash>> preComputedHashesTestAgainst, ExecutorService tPool)Deprecated.protected Object[]RandomForestCategorizer. createForest(int trees, int numVars, int numVarsRep, List<dev.brachtendorf.datastructures.Pair<FuzzyHash,HashingAlgorithm>> randomVariables, Map<HashingAlgorithm,Map<BufferedImage,Hash>> preComputedHashesTestAgainst, ExecutorService tPool)Deprecated. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher.exotic
Methods in dev.brachtendorf.jimagehash.matcher.exotic with parameters of type HashingAlgorithm Modifier and Type Method Description booleanBloomFilter. addHashingAlgorithm(HashingAlgorithm hashingAlgorithm)Added hashing algorithms will be queried to seed the internal rng.protected intBloomFilter. imageToHashCode(HashingAlgorithm hasher, BufferedImage image)Convert the image to a numerical hashcodebooleanBloomFilter. removeHashingAlgorithm(HashingAlgorithm hashingAlgorithm)Hashing algorithms may only be added and removed as long as no image has been added to this set. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher.persistent
Fields in dev.brachtendorf.jimagehash.matcher.persistent with type parameters of type HashingAlgorithm Modifier and Type Field Description protected HashMap<HashingAlgorithm,BinaryTree<String>>PersitentBinaryTreeMatcher. binTreeMapBinary Tree holding results for each individual hashing algorithmprotected Map<HashingAlgorithm,Map<String,Hash>>PersitentBinaryTreeMatcher. cachedHashesSave the hashes of added images mapped to their unique id for fast retrieval.Methods in dev.brachtendorf.jimagehash.matcher.persistent with parameters of type HashingAlgorithm Modifier and Type Method Description voidCumulativeMatcher. addHashingAlgorithm(HashingAlgorithm algo)Add a hashing algorithm to the matcher with a weight multiplier of 1.voidCumulativeMatcher. addHashingAlgorithm(HashingAlgorithm algo, double weight)Add a hashing algorithm to the matcher with the given weight multiplier.voidCumulativeMatcher. addHashingAlgorithm(HashingAlgorithm algo, double weight, boolean dummy)Add a hashing algorithm to the matcher with the given weight multiplier.voidPersistentImageMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold)voidPersistentImageMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold, boolean normalized)voidPersitentBinaryTreeMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold, boolean normalized)Append a new hashing algorithm which will be executed after all hash algorithms passed the test.protected HashPersitentBinaryTreeMatcher. getHash(HashingAlgorithm algo, String uniqueId, BufferedImage bImage)booleanPersitentBinaryTreeMatcher. removeHashingAlgo(HashingAlgorithm algo)Removes the hashing algorithms from the image matcher. -
Uses of HashingAlgorithm in dev.brachtendorf.jimagehash.matcher.persistent.database
Methods in dev.brachtendorf.jimagehash.matcher.persistent.database with parameters of type HashingAlgorithm Modifier and Type Method Description voidDatabaseImageMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold)Append a new hashing algorithm which will be executed after all hash algorithms passed the test.voidDatabaseImageMatcher. addHashingAlgorithm(HashingAlgorithm algo, double threshold, boolean normalized)Append a new hashing algorithm which will be executed after all hash algorithms passed the test.protected voidDatabaseImageMatcher. addImage(HashingAlgorithm hashAlgo, String url, BufferedImage image)protected voidDatabaseImageMatcher. createHashTable(HashingAlgorithm hasher)Create a table to hold image hashes for a particular image hashing algorithmbooleanDatabaseImageMatcher. doesEntryExist(String uniqueId, HashingAlgorithm hashAlgo)Check if an entry with the given uniqueId already existsprotected List<Result<String>>DatabaseImageMatcher. getSimilarImages(Hash targetHash, int maxDistance, HashingAlgorithm hasher)Return all url descriptors which describe images within the provided hammington distance of the supplied hashprotected HashDatabaseImageMatcher. reconstructHashFromDatabase(HashingAlgorithm hasher, byte[] bytes)Reconstruct a hash value from the databasebooleanDatabaseImageMatcher. removeHashingAlgo(HashingAlgorithm algo, boolean forceTableDeletion)Removes the hashing algorithm from the image matcher.protected StringDatabaseImageMatcher. resolveTableName(HashingAlgorithm hashAlgo)Map a hashing algorithm to a table name
-