diva.sketch.toolbox
Class RemoveDupPtsStrokeFilter

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

public class RemoveDupPtsStrokeFilter
extends StrokeFilter

Remove all duplicate adjacent points from a timed stroke. Useful for algorithms that are sensitive to redundant points of this type.

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
RemoveDupPtsStrokeFilter()
           
 
Method Summary
 TimedStroke apply(TimedStroke s)
          Remove all duplicate adjacent points from a timed stroke.
static TimedStroke removeDupPts(TimedStroke s)
          Remove all duplicate adjacent points from a timed stroke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveDupPtsStrokeFilter

public RemoveDupPtsStrokeFilter()
Method Detail

apply

public TimedStroke apply(TimedStroke s)
Remove all duplicate adjacent points from a timed stroke.

Specified by:
apply in class StrokeFilter

removeDupPts

public static TimedStroke removeDupPts(TimedStroke s)
Remove all duplicate adjacent points from a timed stroke.



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