Uses of Class
dev.brachtendorf.jimagehash.hash.Hash
-
Packages that use Hash Package Description dev.brachtendorf.jimagehash.datastructures Datastructures and algorithms which are used by multiple matchers and hashing algorithms to speed up computation.dev.brachtendorf.jimagehash.datastructures.tree Tree like data structuresdev.brachtendorf.jimagehash.datastructures.tree.binaryTree dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy 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.matcher 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.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 Hash in dev.brachtendorf.jimagehash.datastructures
Fields in dev.brachtendorf.jimagehash.datastructures with type parameters of type Hash Modifier and Type Field Description protected HashMap<Hash,Integer>ClusterResult. entryToDataIndexMethods in dev.brachtendorf.jimagehash.datastructures that return types with arguments of type Hash Modifier and Type Method Description List<Hash>ClusterResult. getCluster(int cluster)Map<Integer,List<Hash>>ClusterResult. getClusters()Methods in dev.brachtendorf.jimagehash.datastructures with parameters of type Hash Modifier and Type Method Description ClusterResultKMeans. cluster(Hash[] hashes)ClusterResultKMeans. cluster(Hash[] hashes, int maxIter)protected voidKMeans. computeKMeans(int[] cluster, FuzzyHash[] clusterMeans, Hash[] hashes, int maxIter)protected FuzzyHash[]KMeans. computeStartingClusters(Hash[] hashes)protected FuzzyHash[]KMeansPlusPlus. computeStartingClusters(Hash[] hashes)intClusterResult. getBestFitCluster(Hash testHash)Return the cluster index whose centeroid is most similar to the supplied hashMap<Integer,Double>ClusterResult. getPotentialFits(Hash testHash, double sigma)Checks which cluster has a high chance to contain the closest neighbor to this hashintClusterResult. lookupClusterIdForKnownHash(Hash testHash)Return the cluster index for a hash which was used during the clustering.Constructors in dev.brachtendorf.jimagehash.datastructures with parameters of type Hash Constructor Description ClusterResult(int[] clusterIndex, Hash[] hashes) -
Uses of Hash in dev.brachtendorf.jimagehash.datastructures.tree
Methods in dev.brachtendorf.jimagehash.datastructures.tree with parameters of type Hash Modifier and Type Method Description protected voidAbstractBinaryTree. addHash(Hash hash, T value)Insert a value associated with the supplied hash in the binary tree (similar to a map).abstract PriorityQueue<Result<T>>AbstractBinaryTree. getElementsWithinHammingDistance(Hash hash, int maxDistance)Return all elements of the tree whose hamming distance is smaller or equal than the supplied max distance.abstract List<Result<T>>AbstractBinaryTree. getNearestNeighbour(Hash hash)Get the most similar to the queried argument. -
Uses of Hash in dev.brachtendorf.jimagehash.datastructures.tree.binaryTree
Methods in dev.brachtendorf.jimagehash.datastructures.tree.binaryTree with parameters of type Hash Modifier and Type Method Description voidBinaryTree. addHash(Hash hash, T value)PriorityQueue<Result<T>>BinaryTree. getElementsWithinHammingDistance(Hash hash, int maxDistance)Return all elements of the tree whose hamming distance is smaller or equal than the supplied max distance.List<Result<T>>BinaryTree. getNearestNeighbour(Hash hash)Retrieve the hash that is the most similar to the queried hash. -
Uses of Hash in dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy
Methods in dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy with parameters of type Hash Modifier and Type Method Description protected voidFuzzyBinaryTree. addHash(Hash hash, FuzzyHash value)PriorityQueue<Result<FuzzyHash>>FuzzyBinaryTree. getElementsWithinHammingDistance(Hash hash, int maxDistance)List<Result<FuzzyHash>>FuzzyBinaryTree. getNearestNeighbour(Hash hash) -
Uses of Hash in dev.brachtendorf.jimagehash.hash
Subclasses of Hash in dev.brachtendorf.jimagehash.hash Modifier and Type Class Description classFuzzyHashA fuzzy hash is an aggregation of multiple hashes mapped to a single mean hash representing the average hash while keeping track of fractional (probability) bits.Methods in dev.brachtendorf.jimagehash.hash that return Hash Modifier and Type Method Description static HashHash. fromFile(File source)Reads a hash from a serialization file and returns it.HashFuzzyHash. getUncertaintyHash(double certainty)Return a simple hash containing only the bits that are below the specified uncertainty.HashFuzzyHash. toUncertaintyHash(Hash source, double certainty)Escape the given hash the same wayFuzzyHash.getUncertaintyHash(double)escapes this fuzzy hash.Methods in dev.brachtendorf.jimagehash.hash with parameters of type Hash Modifier and Type Method Description static booleanHashUtil. areCompatible(Hash h0, Hash h1)intFuzzyHash. hammingDistance(Hash h)intHash. hammingDistance(Hash h)Calculate the hamming distance of 2 hash values.intFuzzyHash. hammingDistanceFast(Hash h)intHash. hammingDistanceFast(Hash h)Calculate the hamming distance of 2 hash values.voidFuzzyHash. merge(Hash hash)Merge a hash into this object and lazily update the values as required.voidFuzzyHash. merge(Hash... hash)Merge multiple hashes into this object and lazily update the values as required.voidFuzzyHash. mergeFast(Hash hash)Merge a hash into this object and lazily update the values as required.voidFuzzyHash. mergeFast(Hash... hash)Merge multiple hashes into this object and lazily update the values as required.doubleFuzzyHash. normalizedHammingDistance(Hash h)doubleHash. normalizedHammingDistance(Hash h)Calculate the hamming distance of 2 hash values.doubleFuzzyHash. normalizedHammingDistanceFast(Hash h)doubleHash. normalizedHammingDistanceFast(Hash h)Calculate the hamming distance of 2 hash values.doubleFuzzyHash. squaredWeightedDistance(Hash h)Calculate the squared normalized weighted distance between the supplied hash and this hash.voidFuzzyHash. subtract(Hash hash)Subtract a hash from this object and lazily update the values as required.voidFuzzyHash. subtractFast(Hash hash)Subtract a hash from this object and lazily update the values as required.static FuzzyHashHashUtil. toFuzzyHash(Hash... hashes)HashFuzzyHash. toUncertaintyHash(Hash source, double certainty)Escape the given hash the same wayFuzzyHash.getUncertaintyHash(double)escapes this fuzzy hash.doubleFuzzyHash. weightedDistance(Hash h)Calculate the normalized weighted distance between the supplied hash and this hash.Constructors in dev.brachtendorf.jimagehash.hash with parameters of type Hash Constructor Description FuzzyHash(Hash... hashs)Create a fuzzy hahs by merging the supplied hashes together. -
Uses of Hash in dev.brachtendorf.jimagehash.hashAlgorithms
Subclasses of Hash in dev.brachtendorf.jimagehash.hashAlgorithms Modifier and Type Class Description static classDifferenceHash.DHashAn extended hash class allowing dhashes to be visually represented.Methods in dev.brachtendorf.jimagehash.hashAlgorithms that return Hash Modifier and Type Method Description HashDifferenceHash. createAlgorithmSpecificHash(Hash original)HashHashingAlgorithm. createAlgorithmSpecificHash(Hash original)Wraps the values supplied in the argument hash into a hash object as it would be produced by this algorithm.HashDifferenceHash. hash(BufferedImage image)HashHashingAlgorithm. hash(BufferedImage image)Calculate a hash for the given image.Hash[]HashingAlgorithm. hash(BufferedImage... images)Calculate hashes for the given images.HashHashingAlgorithm. hash(File imageFile)Calculate a hash for the given image.Hash[]HashingAlgorithm. hash(File... imageFiles)Calculate hashes for the given images.Methods in dev.brachtendorf.jimagehash.hashAlgorithms with parameters of type Hash Modifier and Type Method Description HashDifferenceHash. createAlgorithmSpecificHash(Hash original)HashHashingAlgorithm. createAlgorithmSpecificHash(Hash original)Wraps the values supplied in the argument hash into a hash object as it would be produced by this algorithm.Constructors in dev.brachtendorf.jimagehash.hashAlgorithms with parameters of type Hash Constructor Description DHash(Hash h, DifferenceHash.Precision precision, int width, int height) -
Uses of Hash in dev.brachtendorf.jimagehash.matcher
Methods in dev.brachtendorf.jimagehash.matcher with parameters of type Hash Modifier and Type Method Description booleanTypedImageMatcher.AlgoSettings. apply(Hash hash, Hash hash1) -
Uses of Hash in dev.brachtendorf.jimagehash.matcher.categorize
Fields in dev.brachtendorf.jimagehash.matcher.categorize with type parameters of type Hash Modifier and Type Field Description protected Map<String,Map<HashingAlgorithm,Hash>>CategoricalMatcher. cachedHashesHashes of the added imagesMethods in dev.brachtendorf.jimagehash.matcher.categorize with parameters of type Hash Modifier and Type Method Description protected doubleCategoricalMatcher. addCategoricalImage(Hash[] hashes, int category, String uniqueId)protected CategorizationResultCategoricalMatcher. categorizeImage(String uniqueId, Hash[] hashes, Set<Integer> categoriesAltered)Categorize an image on a subset of all categories with hashes present.protected doubleCategoricalMatcher. computeDistanceForCategory(Hash[] hashes, int category, double bestDistance)Compute the distance between an image and a category cluster midpoint.protected doubleWeightedCategoricalMatcher. computeDistanceForCategory(Hash[] hashes, int category, double bestDistance)protected doubleCategoricalMatcher. computeDistanceToCluster(FuzzyHash cluster, Hash imageHash)protected doubleWeightedCategoricalMatcher. computeDistanceToCluster(FuzzyHash cluster, Hash imageHash)protected intCategoricalMatcher. getCategory(int iter, String uniqueId, Hash[] hashes, Set<Integer> categoriesAltered)protected intWeightedCategoricalMatcher. getCategory(int iter, String uniqueId, Hash[] hashes, Set<Integer> categoriesAltered) -
Uses of Hash in dev.brachtendorf.jimagehash.matcher.categorize.supervised.randomForest
Method parameters in dev.brachtendorf.jimagehash.matcher.categorize.supervised.randomForest with type arguments of type Hash 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. -
Uses of Hash in dev.brachtendorf.jimagehash.matcher.persistent
Fields in dev.brachtendorf.jimagehash.matcher.persistent with type parameters of type Hash Modifier and Type Field Description protected HashMap<String,Hash>PersistentImageMatcher. addedImageMapprotected 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 that return Hash Modifier and Type Method Description protected HashPersitentBinaryTreeMatcher. getHash(HashingAlgorithm algo, String uniqueId, BufferedImage bImage) -
Uses of Hash in dev.brachtendorf.jimagehash.matcher.persistent.database
Methods in dev.brachtendorf.jimagehash.matcher.persistent.database that return Hash Modifier and Type Method Description protected HashDatabaseImageMatcher. reconstructHashFromDatabase(HashingAlgorithm hasher, byte[] bytes)Reconstruct a hash value from the databaseMethods in dev.brachtendorf.jimagehash.matcher.persistent.database with parameters of type Hash Modifier and Type Method Description protected 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 hash
-