|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.comparison.CompMatrix
A collection of Descriptor Objects that supports various operations on them, such as comparison between two DescriptorLists, collection of statistics, reading and printing from files, and various others.
Constructor Summary | |
CompMatrix(CompMatrix old,
java.util.BitSet targetMask,
java.util.BitSet candidateMask)
Creates a new comparison matrix as a subset of an existing matrix. |
|
CompMatrix(DescriptorList targets,
DescriptorList candidates,
CanonicalFileDescriptor cfd,
EvaluationParameters.ScopeRules scope,
java.io.PrintWriter log)
Creates a new structure for the comparison of two DescriptorLists. |
|
CompMatrix(DescriptorList targets,
DescriptorList candidates,
CanonicalFileDescriptor cfd,
EvaluationParameters.ScopeRules scope,
java.io.PrintWriter log,
Revealer ticker)
Create a new descriptor comparison matrix. |
Method Summary | |
void |
addPRInfo(Descriptor currConfigDesc,
viper.comparison.PrecisionRecall counts)
Adds the descriptor precision and recall infromation to the running total. |
boolean |
bringToLevel(int type,
EvaluationParameters.ScopeRules scope)
Brings the comparisons up to the given level. |
boolean |
caresAboutCandidate(Descriptor d)
Determines if the candidate should be ignored. |
boolean |
caresAboutTarget(Descriptor d)
Determines if the target should be ignored. |
java.lang.Object |
clone()
Creates a copy of the CompMatrix . |
boolean |
detect()
Comparison.DETECTED (Detection) matching: |
viper.comparison.Surreal |
getCompleteSum()
Gets the minimax sum of all distances. |
EvaluationParameters.ScopeRules |
getScopeRules()
Gets the evaluation rule set currently associated with this set of comparisons. |
boolean |
initializeMatrix(EvaluationParameters.ScopeRules scope,
int level,
Revealer ticker)
Called after setting the descriptors and various other things, this goes through the matrix of comparisons and brings them all up to the specified level of analysis. |
boolean |
isContinuable()
If it is possible to upgrade the level of the matrix. |
boolean |
localize()
Comparison.LOCALIZED (Localization) matching: |
boolean |
match()
------------------------------------------------------------------------ Comparison.MATCHED (Simple Name) matching: Adds candidates from a list of possibles to each of the Descriptor objects in the list. |
void |
printCandidates(java.io.PrintWriter output,
java.io.PrintWriter raw,
java.util.Collection target_configs)
Prints out the candidates that are close to each target, if any haven't been filtered. |
void |
printCurrentFalse(java.io.PrintWriter output,
java.io.PrintWriter raw,
java.util.Collection targetConfigs)
Print out the current estimate of false candidate descriptors. |
void |
printCurrentFM(java.io.PrintWriter output,
java.io.PrintWriter raw,
java.util.Collection targetConfigs)
Print the most recent Descriptors to be false or missed. |
void |
printCurrentMissed(java.io.PrintWriter output,
java.io.PrintWriter raw,
java.util.Collection targetConfigs)
Prints out all of the descriptors that were "missed" in the last pass. |
void |
printPR(java.io.PrintWriter output,
java.io.PrintWriter raw,
DescriptorConfigs targetConfigs)
Deprecated. CompMatrices should only be accessed through CompEvaluators , which
have their own printPR function. |
void |
printROCInfo(java.io.PrintWriter output,
java.io.PrintWriter raw,
DescriptorConfigs target_configs)
Prints out ROC information. |
void |
removeDuplicates(int match)
Comparison.COMPLETE matching: Removes the duplicates in the same rows by finding the minimum distance and promoting those targets to the next level. |
void |
removeOld()
Remove the detritus comparisons (the ones that aren't still active). |
boolean |
statistical(double tolerance)
Comparison.STATISTICED (Statistical) matching: Match subject to constraints on overall attribute match A given candidate will only be considered if its average, minimum or median of the frame distance computations is above a given tolearnce. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompMatrix(DescriptorList targets, DescriptorList candidates, CanonicalFileDescriptor cfd, EvaluationParameters.ScopeRules scope, java.io.PrintWriter log)
targets
- the vector containing the target descriptorscandidates
- the vector containing the candidate descriptorscfd
- the file descriptor describing te media file; needed for some
metrics, e.g. pixel metricsscope
- attribute scope and equivalency ruleslog
- the logger to accept error messagespublic CompMatrix(DescriptorList targets, DescriptorList candidates, CanonicalFileDescriptor cfd, EvaluationParameters.ScopeRules scope, java.io.PrintWriter log, Revealer ticker)
targets
- the target data set. This is the truth data.candidates
- the candidate data setcfd
- basic file metadatascope
- rules about evaluationlog
- error logticker
- ui for indicating how long things are takingpublic CompMatrix(CompMatrix old, java.util.BitSet targetMask, java.util.BitSet candidateMask)
old
- the matrix to subsettargetMask
- the target descriptors to use.
If the kth bit is set, the kth target descriptor will be
used in the new matrix.candidateMask
- the candidate descriptors to use.
If the kth bit is set, the kth candidate descriptor will be
used in the new matrix.Method Detail |
public EvaluationParameters.ScopeRules getScopeRules()
public boolean caresAboutTarget(Descriptor d)
d
- the target descriptor
true
if the target is not worth the timepublic boolean caresAboutCandidate(Descriptor d)
d
- the candidate descriptor
true
if the candidate is not worth the timepublic boolean initializeMatrix(EvaluationParameters.ScopeRules scope, int level, Revealer ticker)
scope
- The scope rules to use during analysis.level
- What evaluation level to use.ticker
- Ticker to tick off time marks on.
true
if some element of the CompMatrix qualifies
as a match at the specified level.public java.lang.Object clone()
CompMatrix
.
public boolean bringToLevel(int type, EvaluationParameters.ScopeRules scope)
type
- the level to go toscope
- the scoping rules
public boolean match()
Comparison.match(EvaluationParameters.ScopeRules)
public boolean detect()
Comparison.detect(CanonicalFileDescriptor,
EvaluationParameters.ScopeRules)
public boolean localize()
Comparison.localize(CanonicalFileDescriptor,
EvaluationParameters.ScopeRules)
public boolean statistical(double tolerance)
tolerance
- the threshold to allow the candidate to still be considered
viable. Currently ignored.
Comparison.statistical(EvaluationParameters.ScopeRules)
public boolean isContinuable()
public viper.comparison.Surreal getCompleteSum()
public void removeDuplicates(int match)
match
- the method for removing duplicatespublic void removeOld()
public void printCurrentFM(java.io.PrintWriter output, java.io.PrintWriter raw, java.util.Collection targetConfigs)
output
- the human readable, verbose streamraw
- the machine readable, terse streamtargetConfigs
- the configs to print outpublic void printCurrentFalse(java.io.PrintWriter output, java.io.PrintWriter raw, java.util.Collection targetConfigs)
output
- the human-readable outputraw
- the raw formatted outputtargetConfigs
- the target descriptors to print outpublic void printCurrentMissed(java.io.PrintWriter output, java.io.PrintWriter raw, java.util.Collection targetConfigs)
goodComp
on all of the
Comparison
s in the matrix and outputing the targets that
are not in any good comparison, are not longDeadComp
, and
are visible.
output
- the human readable, verbose streamraw
- the machine readable, terse streamtargetConfigs
- the configs to print outpublic void printCandidates(java.io.PrintWriter output, java.io.PrintWriter raw, java.util.Collection target_configs)
output
- the PrintWriter
for outputting the information,
eg System.out. May be set to NULL
if no raw
output requested.raw
- the PrintWriter
for outputting the information
in raw format for postprocessing. May be set to
NULL
if no raw output requested.target_configs
- public void printROCInfo(java.io.PrintWriter output, java.io.PrintWriter raw, DescriptorConfigs target_configs)
output
- the human-readable outputraw
- the raw formatted outputtarget_configs
- the target descriptors to print outpublic void addPRInfo(Descriptor currConfigDesc, viper.comparison.PrecisionRecall counts)
currConfigDesc
- the descriptor type to addcounts
- the running totalpublic void printPR(java.io.PrintWriter output, java.io.PrintWriter raw, DescriptorConfigs targetConfigs)
CompEvaluators
, which
have their own printPR function.
output
- the PrintWriter
for outputting the information,
eg System.out. May be set to NULL
if no raw
output requested.raw
- the PrintWriter
for outputting the information
in raw format for postprocessing. May be set to
NULL
if no raw output requested.targetConfigs
- the target descriptor configs for the comparisons to print
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |