diva.sketch.toolbox
Interface SceneMetric

All Known Implementing Classes:
LLRSceneMetric

public interface SceneMetric

A metric interface for comparing the similarity of two different interpretations of a scene. Implementations of this interface can be used to evaluate the performance of a scene recognizer.

Version:
$Revision: 1.3 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

Method Summary
 double apply(Scene db1, Scene db2)
          Return a similarity metric for the given tree (root1) relative to a correct reference scene interpretation (root2).
 String getName()
          Return the name of this metric so that the score can be associated with a meaningful label.
 

Method Detail

getName

String getName()
Return the name of this metric so that the score can be associated with a meaningful label.


apply

double apply(Scene db1,
             Scene db2)
Return a similarity metric for the given tree (root1) relative to a correct reference scene interpretation (root2). The metric should be zero if the two scenes are the same, and one if the two scenes are completely different. Although all scene metrics are normalized between zero and one, the metrics' meanings are different and thus two different metrics should not be compared to one another.

Note that SceneMetrics assume that the given trees are built from the same strokes in the same order. They also only operate on roots that cover all of the leaves.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.