|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.recognition.SceneDelta
diva.sketch.recognition.SceneDelta.Additive
public static class SceneDelta.Additive
An additive version of the SceneDelta class. Additive deltas add themselves to the scene database on demand, when the user calls the commit() method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class diva.sketch.recognition.SceneDelta |
---|
SceneDelta.Additive, SceneDelta.Subtractive |
Constructor Summary | |
---|---|
SceneDelta.Additive(Scene db,
TypedData data,
double confidence,
SceneElement[] elements)
Construct a new scene delta on the given database, consisting of the given root that was added to the database, as well as the |
|
SceneDelta.Additive(Scene db,
TypedData data,
double confidence,
SceneElement[] elements,
String[] names)
Construct a new scene delta on the given database, consisting of the given root that was added to the database, as well as the |
Method Summary | |
---|---|
void |
commit()
Commit the results of this delta to the scene. |
Iterator |
elements()
Entries that were added but are not the root. |
double |
getConfidence()
Get the confidence of the root of the delta. |
CompositeElement |
getRoot()
Root that was added |
String |
toString()
|
void |
veto()
Remove this delta from the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SceneDelta.Additive(Scene db, TypedData data, double confidence, SceneElement[] elements, String[] names)
public SceneDelta.Additive(Scene db, TypedData data, double confidence, SceneElement[] elements)
Method Detail |
---|
public double getConfidence()
getConfidence
in class SceneDelta
public CompositeElement getRoot()
getRoot
in class SceneDelta
public Iterator elements()
elements
in class SceneDelta
public void commit()
commit
in class SceneDelta
public void veto()
veto
in class SceneDelta
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |