JSci.instruments
Interface ParticleTrackerListener


public interface ParticleTrackerListener

Interface for an object that is interested to receive the coordinates measured by a ParticleTracker. The object can be registered to a ParticleTracker.


Method Summary
 void receivePosition(long time, int[] n, double[] x, double[] y, double[] z)
          This method is called by the ParticleTracker whenever it measures the coordinates of the objects in the image.
 

Method Detail

receivePosition

void receivePosition(long time,
                     int[] n,
                     double[] x,
                     double[] y,
                     double[] z)
This method is called by the ParticleTracker whenever it measures the coordinates of the objects in the image.

Parameters:
time - the timestamp of the image
n - the number of the object (can be different from the index)
x - the x coordinates of the templates
y - the y coordinates of the templates
z - the z coordinates of the templates; can be null if no z measure is made