diva.sketch.toolbox
Class AveragingStrokeFilter

java.lang.Object
  extended by diva.sketch.toolbox.StrokeFilter
      extended by diva.sketch.toolbox.AveragingStrokeFilter

public class AveragingStrokeFilter
extends StrokeFilter

Smooth a stroke by averaging a point with its neighboring points.

Version:
$Revision: 1.2 $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)

Field Summary
 
Fields inherited from class diva.sketch.toolbox.StrokeFilter
PROPERTY_KEY
 
Constructor Summary
AveragingStrokeFilter()
           
 
Method Summary
 TimedStroke apply(TimedStroke s)
          Smooth the given stroke by averaging each point with its neighboring points.
static TimedStroke averaging(TimedStroke s)
          Smooth the given stroke by averaging each point with its neighboring points.
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AveragingStrokeFilter

public AveragingStrokeFilter()
Method Detail

apply

public TimedStroke apply(TimedStroke s)
Smooth the given stroke by averaging each point with its neighboring points.

Specified by:
apply in class StrokeFilter

averaging

public static TimedStroke averaging(TimedStroke s)
Smooth the given stroke by averaging each point with its neighboring points.


main

public static void main(String[] argv)


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.