public class DehookingStrokeFilter extends StrokeFilter
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ANGLE_THRESHOLD |
PROPERTY_KEY
Constructor and Description |
---|
DehookingStrokeFilter()
Create a dehooking stroke filter with the default parameters.
|
Modifier and Type | Method and Description |
---|---|
TimedStroke |
apply(TimedStroke s)
Apply a filtering algorithm on the specified pen stroke and
return the filtered stroke.
|
static TimedStroke |
dehook(TimedStroke s)
At the beginning and the end of the given stroke, calculate the
general direction vectors by taking the 2/10 of the total
length from each end.
|
static TimedStroke |
dehook(TimedStroke s,
double angleThresh) |
static TimedStroke |
dehook2(TimedStroke s) |
double |
getHookAngleThresh()
Return the threshold angle value for a hook.
|
void |
setHookAngleThresh(double val)
Set the threshold angle value for testing for a hook.
|
public static final double DEFAULT_ANGLE_THRESHOLD
public DehookingStrokeFilter()
public TimedStroke apply(TimedStroke s)
StrokeFilter
apply
in class StrokeFilter
public static TimedStroke dehook2(TimedStroke s)
public static TimedStroke dehook(TimedStroke s)
public static TimedStroke dehook(TimedStroke s, double angleThresh)
public void setHookAngleThresh(double val)
public double getHookAngleThresh()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.