Added a method for spatial sampling.

This commit is contained in:
Yang Li
2010-01-15 16:14:25 -08:00
parent e99f41f193
commit ec837187df
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ import java.util.concurrent.atomic.AtomicInteger;
/**
* A gesture is a hand-drawn shape on a touch screen. It can have one or multiple strokes.
* Each stroke is a sequence of timed points. A user-defined gesture can be recognized by
* a GestureLibrary and a built-in alpabet gesture can be recognized by a LetterRecognizer.
* a GestureLibrary and a built-in alphabet gesture can be recognized by a LetterRecognizer.
*/
public class Gesture implements Parcelable {

View File

@@ -48,6 +48,10 @@ final class GestureUtilities {
}
}
}
static float[] spatialSampling(Gesture gesture, int sampleMatrixDimension) {
return spatialSampling(gesture, sampleMatrixDimension, false);
}
static float[] spatialSampling(Gesture gesture, int sampleMatrixDimension,
boolean uniformScaling) {