public class GestureTool extends Object
| Constructor and Description |
|---|
GestureTool() |
| Modifier and Type | Method and Description |
|---|---|
static GestureSet |
combine(List<GestureSet> sets)
Combines a list of gesture set to one gesture set.
|
static GestureSet |
combineSampleData(List<GestureSet> sets)
Combines samples (SampleDescriptor) from different gesture sets.
|
static TestSet |
combineTestSet(TestSet[] testSets)
Combines different test sets.
|
static BufferedImage |
createCompositeImage(Constraint constraint,
int width,
int height)
Creates an image from the constraint
|
static TestSet |
createNoise(GestureSet set)
Creates a noise test set from the gesture set.
|
static BufferedImage |
createNote3DImage(Note3D gesture,
int width,
int height)
Creates an image from the note3d
|
static BufferedImage |
createNoteImage(org.sigtec.ink.Note n,
int width,
int height)
Creates an image from the note.
|
static TestSet |
createTestSet(GestureSet set)
Transforms a gesture set into a test set.
|
static double |
getAngle(org.sigtec.ink.Point p1,
org.sigtec.ink.Point p2)
Computes the angle between two points.
|
static org.sigtec.ink.Note |
getCharacteristicNote(org.sigtec.ink.Note note,
double minAngle,
double minDistance)
Creates a characteristic note.
|
static org.sigtec.ink.Trace |
getCharacteristicTrace(org.sigtec.ink.Trace trace,
double minAngle,
double minDistance)
Detects characteristic points of a trace.
|
static void |
hasSampleEnoughPoints(GestureClass gestureClass,
int min) |
static void |
hasSampleEnoughPoints(GestureSet set,
int min) |
static double |
scaleTraceTo(org.sigtec.ink.Trace trace,
double maxWidth,
double maxHeight) |
public static double scaleTraceTo(org.sigtec.ink.Trace trace,
double maxWidth,
double maxHeight)
public static GestureSet combine(List<GestureSet> sets)
sets - the list of gesture sets to be combined.public static org.sigtec.ink.Trace getCharacteristicTrace(org.sigtec.ink.Trace trace,
double minAngle,
double minDistance)
trace - the trace to be filtered.minAngle - the minimal angle between two sequences.minDistance - the minimal distance between two points.public static org.sigtec.ink.Note getCharacteristicNote(org.sigtec.ink.Note note,
double minAngle,
double minDistance)
note - the note to be filtered.minAngle - the minimal angle between two sequences.minDistance - the minimal distance between two points.public static double getAngle(org.sigtec.ink.Point p1,
org.sigtec.ink.Point p2)
p1 - the first point.p2 - the second point.public static BufferedImage createNoteImage(org.sigtec.ink.Note n, int width, int height)
n - the note for which an image has to be created.width - the width of the image.height - the height of the image.public static BufferedImage createNote3DImage(Note3D gesture, int width, int height)
gesture - the note3d for which an image has to be created.width - the width of the image.height - the height of the image.public static BufferedImage createCompositeImage(Constraint constraint, int width, int height)
constraint - the constraint for which an image has to be created.width - the width of the image.height - the height of the image.public static GestureSet combineSampleData(List<GestureSet> sets)
sets - a list of gesture sets.public static TestSet createTestSet(GestureSet set)
set - the gesture set to be transformed.public static TestSet createNoise(GestureSet set)
set - the gesture set.public static TestSet combineTestSet(TestSet[] testSets)
testSets - the test sets to be combined.public static void hasSampleEnoughPoints(GestureSet set, int min)
public static void hasSampleEnoughPoints(GestureClass gestureClass, int min)
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.