public class FingerprintMatcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
comparedFile |
protected java.lang.String |
compareFile |
protected Fingerprint |
fp1 |
protected Fingerprint |
fp2 |
protected int |
minimum_score
the minimum score needed to be considered a match
|
protected int |
score |
Constructor and Description |
---|
FingerprintMatcher()
Constructor that sets the minimum score to use for matching two fingerprints to zero
|
FingerprintMatcher(int score)
Constructor that sets the minimum score to use for matching two fingerprints
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMatcherName()
Provides the name of the matcher used to determine in the two fingerprints have matching documents
|
int |
getMinimumScore()
Provides the minimum score for these two fingerprints to be considered a match.
|
void |
getScore()
Determines a similarity score for these two fingerprints;
over-ridden in GoogleAllPairs
|
int |
getScore(byte[] fp1,
byte[] fp2)
Determines a similarity score for these two fingerprints; must be over-ridden in each specific matcher
|
FingerprintMatcher |
getScore(Fingerprint fp1,
Fingerprint fp2) |
int |
getScore(java.lang.String fing1,
java.lang.String fing2) |
int |
getScoreXML(java.lang.String base64fp1,
java.lang.String base64fp2)
Determines a similarity score for these two fingerprints.
|
boolean |
match(byte[] fp1,
byte[] fp2)
Determines if the two fingerprints' documents match; must be over-ridden in each specific matcher
|
boolean |
match(java.util.List<Fingerprint> fingerprintList)
Determines if these two fingerprints' documents match.
|
boolean |
match(java.lang.String base64fp1,
java.lang.String base64fp2)
Determines if these two fingerprints' documents match.
|
void |
setMinimumScore(int score)
Sets the minimum score for these two fingerprints to be considered a match.
|
protected int minimum_score
protected int score
protected java.lang.String comparedFile
protected java.lang.String compareFile
protected Fingerprint fp1
protected Fingerprint fp2
public FingerprintMatcher()
public FingerprintMatcher(int score)
score
- the minimum score needed to be considered a matchpublic java.lang.String getMatcherName()
public void setMinimumScore(int score)
score
- the minimum score for these fingerprints to be considered a matchpublic int getMinimumScore()
public boolean match(byte[] fp1, byte[] fp2)
fp1
- the byte array containing the first fingerprintfp2
- the byte array containing the second fingerprintpublic boolean match(java.lang.String base64fp1, java.lang.String base64fp2)
Calls match(byte[], byte[])
, which by default returns false and must be over-ridden in each specific
matcher.
base64fp1
- the Base64 encoded string containing the first fingerprintbase64fp2
- the Base64 encoded string containing the second fingerprintpublic boolean match(java.util.List<Fingerprint> fingerprintList)
Calls match(byte[], byte[])
, which by default returns false and must be over-ridden in each specific
matcher.
fingerprintList
- the Base64 encoded string containing the first fingerprintpublic int getScore(byte[] fp1, byte[] fp2)
fp1
- the byte array containing the first fingerprintfp2
- the byte array containing the second fingerprintpublic void getScore()
public int getScore(java.lang.String fing1, java.lang.String fing2)
public int getScoreXML(java.lang.String base64fp1, java.lang.String base64fp2)
Calls getScore(byte[], byte[])
, which by default returns 0 and must be over-ridden in each specific
matcher.
base64fp1
- the Base64 encoded string containing the first fingerprintbase64fp2
- the Base64 encoded string containing the second fingerprintpublic FingerprintMatcher getScore(Fingerprint fp1, Fingerprint fp2)