|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.util.GestureTool
public class GestureTool
Collection of commonly used static methods.
| Constructor Summary | |
|---|---|
GestureTool()
|
|
| Method Summary | |
|---|---|
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 |
createNoteImage(org.sigtec.ink.Note n,
int width,
int height)
Creates an image from the note. |
static BufferedImage |
createRecordedGesture3DImage(RecordedGesture3D gesture,
int width,
int height)
Creates an image from the recordedgesture3d |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GestureTool()
| Method Detail |
|---|
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 createRecordedGesture3DImage(RecordedGesture3D gesture,
int width,
int height)
gesture - the recordedgesture3d 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)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||