public class DashedPathRecognizer extends Object implements SceneRecognizer
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ANGLE_THRESH
The default tolerance for the maximum angle
error over the sum of the edges of the polygon.
|
static double |
DEFAULT_DIST_THRESH
The default tolerance for the maximum distance
squared between endpoints of lines.
|
static double |
DEFAULT_MIN_CONFIDENCE
The default tolerance for the minimum allowable
line confidence per stroke.
|
Constructor and Description |
---|
DashedPathRecognizer(SceneRecognizer child)
Construct a dashed path recognizer with the given child
recognizer and the default threshold values
DEFAULT_DIST_THRESH, DEFAULT_ANGLE_THRESH, DEFAULT_MIN_CONFIDENCE.
|
DashedPathRecognizer(SceneRecognizer child,
double distThresh,
double angleThresh,
double minConf)
Construct a polygon recognizer with the given
child recognizer that transitively invokes
low-level recognition, as well as threshold
tolerances for the maximum distance
squared between endpoints, the maximum angle
error over the polygon, and the minimum "line"
confidence for each stroke in the polygon.
|
Modifier and Type | Method and Description |
---|---|
SceneDeltaSet |
sessionCompleted(StrokeElement[] session,
Scene db)
Test whether the given strokes make a dashed path.
|
SceneDeltaSet |
strokeCompleted(StrokeElement stroke,
Scene db) |
SceneDeltaSet |
strokeModified(StrokeElement stroke,
Scene db) |
SceneDeltaSet |
strokeStarted(StrokeElement stroke,
Scene db) |
public static final double DEFAULT_DIST_THRESH
public static final double DEFAULT_ANGLE_THRESH
public static final double DEFAULT_MIN_CONFIDENCE
public DashedPathRecognizer(SceneRecognizer child)
public DashedPathRecognizer(SceneRecognizer child, double distThresh, double angleThresh, double minConf)
public SceneDeltaSet strokeStarted(StrokeElement stroke, Scene db)
strokeStarted
in interface SceneRecognizer
public SceneDeltaSet strokeModified(StrokeElement stroke, Scene db)
strokeModified
in interface SceneRecognizer
public SceneDeltaSet strokeCompleted(StrokeElement stroke, Scene db)
strokeCompleted
in interface SceneRecognizer
public SceneDeltaSet sessionCompleted(StrokeElement[] session, Scene db)
sessionCompleted
in interface SceneRecognizer
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.