Added a method for spatial sampling.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user