codeanticode.progpuklt
Class FeatureTrack

java.lang.Object
  extended by codeanticode.progpuklt.FeatureTrack

public class FeatureTrack
extends java.lang.Object

This class encapsulates a feature track, i.e., all the (x, y) positions that the feature point has adopted during its existence up to the current frame.

Author:
Andres Colubri

Field Summary
 int length
           
static int MAX_TRACK_LENGTH
           
 boolean restarted
           
 float[] x
           
 float[] y
           
 
Constructor Summary
FeatureTrack()
          Default constructor
 
Method Summary
 void add(float x, float y)
          Adds a new position to the track.
 void clear()
          Sets track length to zero.
 void restart()
          Sets restarted field to true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

public int length

restarted

public boolean restarted

x

public float[] x

y

public float[] y

MAX_TRACK_LENGTH

public static int MAX_TRACK_LENGTH
Constructor Detail

FeatureTrack

public FeatureTrack()
Default constructor

Method Detail

clear

public void clear()
Sets track length to zero.


restart

public void restart()
Sets restarted field to true.


add

public void add(float x,
                float y)
Adds a new position to the track.

Parameters:
x - float
y - float


processing library proGPUKLT by Andres Colubri. (c) 2008