JSci.instruments
Class PTTwoDBarycentre

java.lang.Object
  extended by JSci.instruments.ImageFilterAdapter
      extended by JSci.instruments.PTTwoDBarycentre
All Implemented Interfaces:
Control, Dimensions, ImageFilter, ImageSink, ImageSource, ParticleTracker

public class PTTwoDBarycentre
extends ImageFilterAdapter
implements ParticleTracker

Find a bead in two dimensions; Barycentre algorithm


Nested Class Summary
(package private) static class PTTwoDBarycentre.SimulatedBarycentreSource
           
 
Field Summary
(package private)  javax.swing.JComponent comp
           
static boolean INTERLACED
          the image must be considered interlaced, that is composed by two frames distant by TIME_FIELD?
static int TIME_FIELD
          for interlaced images (see INTERLACED),two frames are distant by TIME_FIELD ms
 
Constructor Summary
PTTwoDBarycentre()
           
 
Method Summary
 void filter(Image f)
          find the bead
 java.awt.Component getFilterControlComponent()
          defines the Component that controls this filter
 java.lang.String getName()
          defines the name of the filter
static void main(java.lang.String[] args)
           
 void setListener(ParticleTrackerListener ptl)
          Sets the object that wants to receive the data collected by the particle tracker.
 void setROI(ROI r)
          set the ROI for the selections
 java.lang.String toString()
           
 
Methods inherited from class JSci.instruments.ImageFilterAdapter
getControlComponent, getHeight, getSize, getWidth, receive, setSink, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface JSci.instruments.ImageSource
setSink
 
Methods inherited from interface JSci.instruments.Dimensions
getHeight, getSize, getWidth
 
Methods inherited from interface JSci.instruments.ImageSink
receive, setSource
 
Methods inherited from interface JSci.instruments.Control
getControlComponent
 

Field Detail

INTERLACED

public static boolean INTERLACED
the image must be considered interlaced, that is composed by two frames distant by TIME_FIELD?


TIME_FIELD

public static int TIME_FIELD
for interlaced images (see INTERLACED),two frames are distant by TIME_FIELD ms


comp

javax.swing.JComponent comp
Constructor Detail

PTTwoDBarycentre

public PTTwoDBarycentre()
Method Detail

getName

public java.lang.String getName()
defines the name of the filter

Overrides:
getName in class ImageFilterAdapter

setListener

public void setListener(ParticleTrackerListener ptl)
Description copied from interface: ParticleTracker
Sets the object that wants to receive the data collected by the particle tracker.

Specified by:
setListener in interface ParticleTracker
Parameters:
ptl - the object that receives the data; each time a new image is processed, ptl.receivePosition() is called.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

filter

public void filter(Image f)
find the bead

Specified by:
filter in class ImageFilterAdapter

getFilterControlComponent

public java.awt.Component getFilterControlComponent()
defines the Component that controls this filter

Overrides:
getFilterControlComponent in class ImageFilterAdapter

setROI

public void setROI(ROI r)
set the ROI for the selections


main

public static void main(java.lang.String[] args)