Serialized Form
-
Package dev.brachtendorf.jimagehash.datastructures.tree
-
Class dev.brachtendorf.jimagehash.datastructures.tree.AbstractBinaryTree extends Object implements Serializable
- serialVersionUID:
- 8698935405804461236L
-
Serialized Fields
-
algoId
int algoId
The algorithm id all hashes have to match if they want to perform an action -
ensureHashConsistency
boolean ensureHashConsistency
Flag indicating if hashes origin should be checked -
hashCount
int hashCount
Keep track of how many hashes were added to the tree -
root
Node root
The root node of the tree.
-
-
-
Package dev.brachtendorf.jimagehash.datastructures.tree.binaryTree
-
Class dev.brachtendorf.jimagehash.datastructures.tree.binaryTree.BinaryTree extends AbstractBinaryTree<T> implements Serializable
- serialVersionUID:
- 4193396415197848158L
-
Class dev.brachtendorf.jimagehash.datastructures.tree.binaryTree.Leaf extends Node implements Serializable
-
Class dev.brachtendorf.jimagehash.datastructures.tree.binaryTree.Node extends Object implements Serializable
- serialVersionUID:
- 9168509020498037545L
-
-
Package dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy
-
Class dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy.FuzzyBinaryTree extends AbstractBinaryTree<FuzzyHash> implements Serializable
- serialVersionUID:
- -246416483525585695L
-
Serialized Fields
-
hashLengthDebug
int hashLengthDebug
-
-
Class dev.brachtendorf.jimagehash.datastructures.tree.binaryTreeFuzzy.FuzzyNode extends Node implements Serializable
- serialVersionUID:
- 4043416513243595121L
-
Serialized Fields
-
lowerDistance
double lowerDistance
The lower bound error this node might have -
uppderDistance
double uppderDistance
The upper bound error this node might have
-
-
-
Package dev.brachtendorf.jimagehash.hash
-
Class dev.brachtendorf.jimagehash.hash.FuzzyHash extends Hash implements Serializable
- serialVersionUID:
- 1395094691469035167L
-
Serialized Fields
-
bitDistance
double[] bitDistance
The distance of each bit to a 1 bit in range [0-1] -
bits
int[] bits
The difference in 1's or 0 bits added for each position. Positive values indicate more 1's negative more 0's. -
bitWeights
double[] bitWeights
//@formatter:off The probability of a bit being a 0 or 1 In range of [-1,1]. -1 Indicating that a bit is always 0 1 that the bit is always 1 0 that the bit is equally likely to be 0 or 1 //@formatter:on -
maxError
double maxError
The maximum possible error when computing the normalized hamming distance and the weighted hamming distance -
numHashesAdded
int numHashesAdded
The number of hashes contained in this composite hash
-
-
Class dev.brachtendorf.jimagehash.hash.Hash extends Object implements Serializable
- serialVersionUID:
- 3045682506632674223L
-
Serialized Fields
-
algorithmId
int algorithmId
Unique identifier of the algorithm and settings used to create the hash -
hashLength
int hashLength
How many bits does this hash represent. Necessary due to suffix 0 bits beginning dropped. -
hashValue
BigInteger hashValue
Hash value representation Hashes are constructed by left shifting BigIntegers with either Zero or One depending on the condition found in the image. Preceding 0's will be truncated therefore it is the algorithms responsibility to add a 1 padding bit at the beginning new BigInteger("011011) new BigInteger("000101) 1xxxxx
-
-
-
Package dev.brachtendorf.jimagehash.hashAlgorithms
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.AverageColorHash extends AverageHash implements Serializable
- serialVersionUID:
- -5234612717498362659L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.AverageHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- -5234612717498362659L
-
Serialized Fields
-
height
int height
The height and width of the scaled instance used to compute the hash -
width
int width
The height and width of the scaled instance used to compute the hash
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.AverageKernelHash extends AverageHash implements Serializable
- serialVersionUID:
- -5234612717498362659L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.DifferenceHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- 7236596241664072005L
-
Serialized Fields
-
height
int height
The height and width of the scaled instance used to compute the hash -
precision
DifferenceHash.Precision precision
Precision used to calculate the hash -
width
int width
The height and width of the scaled instance used to compute the hash
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.DifferenceHash.DHash extends Hash implements Serializable
-
Serialized Fields
-
height
int height
-
precision
DifferenceHash.Precision precision
-
width
int width
-
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.HashingAlgorithm extends Object implements Serializable
- serialVersionUID:
- 3L
-
Serialized Fields
-
algorithmId
int algorithmId
The algorithm id of this hashing algorithm. The algorithm id specifies a unique identifier which allows to check if two distinct hashes are created by the same hashing algorithm and therefore are comparable. Even algorithms with the same -
bitResolution
int bitResolution
The target bit resolution supplied during algorithm creation. This number represents the number of bits the final hash SHOULD have, but does not necessarily reflect it's actual length.Therefore, it is not advised to use this value during computation of the hash unless you made sure that the value actually reflects
-
immutableState
boolean immutableState
After a hash was created or the id was calculated the object may not be altered anymore. -
keyResolution
int keyResolution
The actual bit resolution of produced hashes -
opaqueReplacementColor
Color opaqueReplacementColor
Color used in replacement of opaque pixels -
opaqueReplacementThreshold
int opaqueReplacementThreshold
Maximum alpha value a pixel must have in order to be replaced -
preProcessing
List<Filter> preProcessing
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.MedianHash extends AverageHash implements Serializable
- serialVersionUID:
- -5234612717498362659L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.PerceptiveHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- 8409228150836051697L
-
Serialized Fields
-
height
int height
The height and width of the scaled instance used to compute the hash -
width
int width
The height and width of the scaled instance used to compute the hash
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.RotAverageHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- 128391293L
-
Serialized Fields
-
centerX
double centerX
X Origin the pixels will be rotated around -
centerY
double centerY
Y Origin the pixels will be rotated around -
count
int[] count
The number of pixels in each bucket used to compute the average. Since this value stays consistent due to resizing it can be cached. -
height
int height
Height of the rescaled image -
width
int width
Width of the rescaled image
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.RotPHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- -7498910506857652806L
-
Serialized Fields
-
buckets
int buckets
The number of circles the pixels will be mapped to -
centerX
double centerX
X Origin the pixels will be rotated around -
centerY
double centerY
Y Origin the pixels will be rotated around -
height
int height
Height of the rescaled image -
truncateKey
boolean truncateKey
If parts of the key shall be truncated -
width
int width
Width of the rescaled image -
widthPerSection
double widthPerSection
The width of each circle
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.WaveletHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- -2259243765925949874L
-
Serialized Fields
-
cycles
int cycles
The number of times to feed the data back into the wavlet function -
height
int height
The height of the rescale image -
width
int width
The width of the rescaled image
-
-
-
Package dev.brachtendorf.jimagehash.hashAlgorithms.experimental
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.experimental.HogHash extends HashingAlgorithm implements Serializable
- serialVersionUID:
- 5353878339786219609L
-
Serialized Fields
-
cellWidth
int cellWidth
Deprecated.The cell width/height used to compute the features -
height
int height
Deprecated.The height of the rescaled image -
numBins
int numBins
Deprecated.The number of angle bins per cell -
width
int width
Deprecated.The width of the rescaled image -
xCells
int xCells
Deprecated.The number of cells in x dimension -
yCells
int yCells
Deprecated.The number of cells in y dimension
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.experimental.HogHashAngularEncoded extends HogHash implements Serializable
- serialVersionUID:
- 8174228394380201299L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.experimental.HogHashDual extends HogHash implements Serializable
- serialVersionUID:
- 5353878339786219609L
-
-
Package dev.brachtendorf.jimagehash.hashAlgorithms.filter
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.Kernel extends Object implements Serializable
- serialVersionUID:
- -3490082941059458531L
-
Serialized Fields
-
edgeHandling
Kernel.EdgeHandlingStrategy edgeHandling
How are edged of the images handled -
mask
double[][] mask
Kernel mask applied to the pixels
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.Kernel.GrayScaleFilter extends Kernel implements Serializable
- serialVersionUID:
- -1079407275717629013L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.MaximumKernel extends NonAveragingKernel implements Serializable
- serialVersionUID:
- 4302400514104308983L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.MedianKernel extends NonAveragingKernel implements Serializable
- serialVersionUID:
- 5756361510407136992L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.MinimumKernel extends NonAveragingKernel implements Serializable
- serialVersionUID:
- -2271995765850760974L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.MultiKernel extends Kernel implements Serializable
- serialVersionUID:
- -95494777151267950L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.NonAveragingKernel extends Kernel implements Serializable
- serialVersionUID:
- -6587002283239284704L
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.ScharrFilter extends Object implements Serializable
- serialVersionUID:
- 7737512505762187137L
-
Serialized Fields
-
threshold
double threshold
Gray cutoff value -
xKernel
MultiKernel xKernel
Separated Gx Kernel -
yKernel
MultiKernel yKernel
Separated Gy Kernel
-
-
Class dev.brachtendorf.jimagehash.hashAlgorithms.filter.SobelFilter extends Object implements Serializable
- serialVersionUID:
- -794573990315594591L
-
Serialized Fields
-
threshold
double threshold
Gray cutoff value -
xKernel
MultiKernel xKernel
Separated Gx Kernel -
yKernel
MultiKernel yKernel
Separated Gy Kernel
-
-
-
Package dev.brachtendorf.jimagehash.matcher
-
Class dev.brachtendorf.jimagehash.matcher.TypedImageMatcher.AlgoSettings extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
normalized
boolean normalized
Use normalized or ordinary hamming distance during calculation -
threshold
double threshold
Threshold value hash hamming may be for images to be considered equal
-
-
-
Package dev.brachtendorf.jimagehash.matcher.persistent
-
Class dev.brachtendorf.jimagehash.matcher.persistent.ConsecutiveMatcher extends PersitentBinaryTreeMatcher implements Serializable
- serialVersionUID:
- 831914616034052308L
-
Class dev.brachtendorf.jimagehash.matcher.persistent.CumulativeMatcher extends PersitentBinaryTreeMatcher implements Serializable
- serialVersionUID:
- 4124905869048848068L
-
Serialized Fields
-
overallSetting
TypedImageMatcher.AlgoSettings overallSetting
Settings of the in memory matcher
-
-
Class dev.brachtendorf.jimagehash.matcher.persistent.PersistentImageMatcher extends TypedImageMatcher implements Serializable
- serialVersionUID:
- 4656669336898685462L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
private void writeObject(ObjectOutputStream oos) throws IOException
- Throws:
IOException
-
-
Serialized Fields
-
Class dev.brachtendorf.jimagehash.matcher.persistent.PersitentBinaryTreeMatcher extends PersistentImageMatcher implements Serializable
- serialVersionUID:
- -4650598803470549478L
-
Serialized Fields
-
addedImages
HashSet<String> addedImages
keep track of images already added. No reason to rehash -
binTreeMap
HashMap<HashingAlgorithm,BinaryTree<String>> binTreeMap
Binary Tree holding results for each individual hashing algorithm -
cacheAddedHashes
boolean cacheAddedHashes
-
cachedHashes
Map<HashingAlgorithm,Map<String,Hash>> cachedHashes
Save the hashes of added images mapped to their unique id for fast retrieval.
-
-
-
Package dev.brachtendorf.jimagehash.matcher.persistent.database
-
Class dev.brachtendorf.jimagehash.matcher.persistent.database.DatabaseImageMatcher extends TypedImageMatcher implements Serializable
- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
private void writeObject(ObjectOutputStream oos) throws IOException
- Throws:
IOException
-
-
Class dev.brachtendorf.jimagehash.matcher.persistent.database.H2DatabaseImageMatcher extends DatabaseImageMatcher implements Serializable
- serialVersionUID:
- 5629316725655117532L
-