|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.recognition.VotingSceneRecognizer
public class VotingSceneRecognizer
A composite recognizer which allows multiple sub-recognizers to vote on interpretations of a given scene. This recognizer basically utilizes the same heuristics as VotingStrokeRecognizer, but applies to scene elements instead of strokes for high-level recognition.
VotingStrokeRecognizer
Field Summary | |
---|---|
static int |
ALL_VOTES
A constant which says that votes are not filtered by the "n-highest" rule. |
Constructor Summary | |
---|---|
VotingSceneRecognizer(SceneRecognizer[] children)
Construct a voting recognizer with the following child recognizers. |
Method Summary | |
---|---|
List |
children()
Return the children as a list. |
void |
clearBuffer()
Clear the buffer after every stroke finishes by setting every entry in the buffer to NO_DELTA. |
double |
getMinConfidence()
Return the minimum confidence value which is necessary for a type to get considered in the vote. |
int |
getNHighest()
Return the "n-highest" value, which says that the n-highest classifications will get passed on when the child recognizers vote. |
SceneDeltaSet |
sessionCompleted(StrokeElement[] session,
Scene db)
Pass the event to the child recognizers, tally the vote, clear the buffer, and return the consensus. |
void |
setMinConfidence(double val)
Set the minimum confidence classifications that will get passed on when the child recognizers vote. |
void |
setNHighest(int n)
Set the "n-highest" value, which says that the n-highest classifications will get passed on when the child recognizers vote. |
SceneDeltaSet |
strokeCompleted(StrokeElement s,
Scene db)
Pass the event to the child recognizers, tally the vote, clear the buffer, and return the consensus. |
SceneDeltaSet |
strokeModified(StrokeElement s,
Scene db)
Pass the event to the child recognizers, tally the vote, and return the consensus. |
SceneDeltaSet |
strokeStarted(StrokeElement s,
Scene db)
Pass the event to the child recognizers, tally the vote, and return the consensus. |
protected SceneDeltaSet |
vote()
Tally all of the votes of the sub-recognizers and emit them all into a recognition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int ALL_VOTES
setNHighest(int)
Constructor Detail |
---|
public VotingSceneRecognizer(SceneRecognizer[] children)
Method Detail |
---|
public void clearBuffer()
public List children()
public double getMinConfidence()
public int getNHighest()
public void setMinConfidence(double val)
public void setNHighest(int n)
public SceneDeltaSet sessionCompleted(StrokeElement[] session, Scene db)
sessionCompleted
in interface SceneRecognizer
public SceneDeltaSet strokeCompleted(StrokeElement s, Scene db)
strokeCompleted
in interface SceneRecognizer
public SceneDeltaSet strokeModified(StrokeElement s, Scene db)
strokeModified
in interface SceneRecognizer
public SceneDeltaSet strokeStarted(StrokeElement s, Scene db)
strokeStarted
in interface SceneRecognizer
protected SceneDeltaSet vote()
getNHighest()
,
getMinConfidence()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |