|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.comparison.FramewiseEvaluation
A framewise evaluation views each frame individually, computing aggregate statisitcs on a frame-by-frame or even pixel-by-pixel level, disregarding the continuity of descriptors. This is great for computing things like pixel and frame counts.
Nested Class Summary | |
static class |
FramewiseEvaluation.FrameMeasure
A measure for a given frame. |
Nested classes inherited from class viper.comparison.Evaluation |
Evaluation.Information |
Constructor Summary | |
FramewiseEvaluation(EvaluationParameters epf)
Constructs a new framewise evaluation from the given parameters |
Method Summary | |
java.util.Map |
getMeasureMap()
Return a map of DescPrototypes to their evaluations. |
java.lang.String |
getName()
Gets the name of the evalutation type. |
java.io.PrintWriter |
getOutput()
Gets the human readable output stream. |
int |
getTickerSize()
Gets the number of elements in the ticker. |
boolean |
isPrintingHeaders()
Tests to see if the header and footer should be printed out. |
void |
parseEvaluation(VReader reader,
DescriptorConfigs dcfgs)
Parse the vreader section. |
Evaluation.Information |
printEvaluation()
Prints out the evaluation information after a successful evaluation. |
void |
printFooter(Evaluation.Information total)
Prints the footer information, including overall scores. |
void |
printHeader()
Prints the header information, usually about what metrics and rules were used in the evaluation. |
void |
printMetricsTo(java.io.PrintWriter out)
Print out information about evaluation |
void |
printRawMetricsTo(java.io.PrintWriter raw)
Print evaluation info in terse format |
void |
setMatrix(CompMatrix cm)
Sets the matrix to evaluate. |
void |
setOutput(java.io.PrintWriter output)
Sets where human-readable information should be printed. |
void |
setPrintingHeaders(boolean on)
Set to print headers or not. |
void |
setRaw(java.io.PrintWriter raw)
Sets the machine readable raw output stream. |
void |
setTicker(Revealer ticker)
Sets the ui for progress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FramewiseEvaluation(EvaluationParameters epf)
epf
- the evaluation parametersMethod Detail |
public void printMetricsTo(java.io.PrintWriter out)
printMetricsTo
in interface Evaluation
out
- the output streampublic void printRawMetricsTo(java.io.PrintWriter raw)
printRawMetricsTo
in interface Evaluation
raw
- the raw streampublic void setOutput(java.io.PrintWriter output)
setOutput
in interface Evaluation
output
- the human readable output streampublic java.io.PrintWriter getOutput()
getOutput
in interface Evaluation
public void setRaw(java.io.PrintWriter raw)
setRaw
in interface Evaluation
raw
- the machine readable streampublic void setPrintingHeaders(boolean on)
setPrintingHeaders
in interface Evaluation
on
- true to print headerspublic boolean isPrintingHeaders()
isPrintingHeaders
in interface Evaluation
public void setTicker(Revealer ticker)
setTicker
in interface Evaluation
ticker
- the progress uipublic void setMatrix(CompMatrix cm)
setMatrix
in interface Evaluation
cm
- the matrix to evaluatepublic int getTickerSize()
getTickerSize
in interface Evaluation
public void printHeader()
printHeader
in interface Evaluation
public void printFooter(Evaluation.Information total)
printFooter
in interface Evaluation
total
- the totalpublic Evaluation.Information printEvaluation()
printEvaluation
in interface Evaluation
public void parseEvaluation(VReader reader, DescriptorConfigs dcfgs) throws java.io.IOException
parseEvaluation
in interface Evaluation
reader
- VReader, already pointing at the begin evaluation directive.dcfgs
- the target data - the evaluation uses the target names
java.io.IOException
public java.util.Map getMeasureMap()
getMeasureMap
in interface Evaluation
public java.lang.String getName()
getName
in interface Evaluation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |