diva.sketch.parser2d
Interface Relation

All Known Implementing Classes:
AngleRelation, AreaRatioRelation, DeltaXRelation, DeltaYRelation, DistanceRelation, HeightRatioRelation, OverlapRelation, WidthRatioRelation

public interface Relation

An object that specifies a directed spatial relationship between two scene elements. This relationship returns a scalar value, which can be used to check constraints, or as a feature for a classifier of some sort.

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

Method Summary
 double apply(SceneElement e1, SceneElement e2)
          Return the value of the relation extracted from the given rectangles.
 String getName()
          Return the name of the relation extractor.
 String toString(String e1Name, String e2Name)
          Pretty print the relation in the grammar format.
 

Method Detail

apply

double apply(SceneElement e1,
             SceneElement e2)
Return the value of the relation extracted from the given rectangles.


getName

String getName()
Return the name of the relation extractor.


toString

String toString(String e1Name,
                String e2Name)
Pretty print the relation in the grammar format.



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