|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.ddg.ObjectDescription
ObjectDescription is a representation of an object in the sketch as a set of primitives, subobjects and a constraints between them. Several parameters can be turned on and off. The object description will be constructed accordingly. If those parameters are changed, right now the object description does not preserve all the information, so you need to construct the object description again with the new parameters.
ObjectDescription.java Created: Sat Nov 20 19:43:00 2001
| Field Summary | |
static boolean |
FIND_SUBOBJECTS
Print the confidence and the relevance of the constraint, when printing out the constraint graph |
static double |
LOW_CONFIDENCE_THRESHOLD
Threshold for removing constraints with low confidence. |
static boolean |
PRINT_DETAILS
Print the confidence and the relevance of the constraint, when printing out the constraint graph |
static boolean |
RATE_BY_RELEVANCE
Some constraints are more relevant then others. |
static boolean |
REMOVE_EXCLUSIVE
Some constraints are exclusive in human perception (example: the lines either "meet" or "connect"). |
static boolean |
REMOVE_LOW_CONFIDENCE
Remove constraints based on thresholding just on confidence. |
static boolean |
REMOVE_REDUNDANT
Remove constraints that can be geometrically derived from others because they are redundant. |
static boolean |
REMOVE_UNCERTAIN
Remove constraints based on thresholding on a combination of confidence and relevance of a constraint (confidence*relevance). |
static double |
UNCERTAIN_THRESHOLD
Threshold of uncertainty (confidence*relevance) |
| Constructor Summary | |
ObjectDescription(String name)
Constructs an empty object description |
|
ObjectDescription(Vector strokes,
String name)
Constructs the object description from and example drawn by the user. |
|
| Method Summary | |
Vector |
constraints()
Return the list of constraints for this object |
Constraint |
getConstraint(String name)
Returns a certain constraint (given by name) |
String |
name()
Name of the object |
Vector |
primitives()
Return the list of primitives for this object |
HashMap |
primToGeomParts()
Returns the correspondence of primitives to geom parts from the user example stroke that this description was based on |
void |
print()
Print the description of the object. |
void |
recordSubobjects(Vector objects)
Find in this object and record subobjects from a given list (of ObjectDescriptions). |
void |
removeExclusiveConstraints()
Remove constraints that are perceptually exclusive. |
void |
removeLowConfidenceConstraints()
Remove constraints that are below the LOW_CONFIDENCE_THRESHOLD in confidence |
void |
removeRedundantConstraints()
Remove constraints that are redundant (derivable from others). |
void |
removeUncertainConstraints()
Remove constraints that are below the UNCERTAIN_THRESHOLD in combined confidence and relevance |
Vector |
subobjectPrimitiveMappingAll(ObjectDescription target)
Find ALL mapping between the primitives of this object and the primitives of the target template object, assuming that the target object is a subobject (Example: find a rectangle in the symbol for the house). |
Vector |
subobjects()
Return the list of subobjects for this object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean RATE_BY_RELEVANCE
public static boolean REMOVE_UNCERTAIN
public static boolean REMOVE_LOW_CONFIDENCE
public static double LOW_CONFIDENCE_THRESHOLD
public static double UNCERTAIN_THRESHOLD
public static boolean REMOVE_EXCLUSIVE
public static boolean REMOVE_REDUNDANT
public static boolean PRINT_DETAILS
public static boolean FIND_SUBOBJECTS
| Constructor Detail |
public ObjectDescription(String name)
public ObjectDescription(Vector strokes,
String name)
| Method Detail |
public void print()
public void removeUncertainConstraints()
public void removeLowConfidenceConstraints()
public void removeExclusiveConstraints()
public void removeRedundantConstraints()
public Constraint getConstraint(String name)
public void recordSubobjects(Vector objects)
public String name()
public HashMap primToGeomParts()
public Vector subobjectPrimitiveMappingAll(ObjectDescription target)
public Vector constraints()
public Vector primitives()
public Vector subobjects()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||