JSci.instruments
Class PTCroquette

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

public class PTCroquette
extends ImageFilterAdapter
implements ParticleTracker, ROI

an Effect that does the particle tracking in 3D, for symmetric images


Field Summary
static int CALIBR_AVR
          While calibrating, averages this number of frames
static double CALIBR_STEP
          Steps in z for calibration (microns)
static int CROSS_H
          Width of the arms of the cross
static int CROSS_L
          Length of the arms of the cross
 
Constructor Summary
PTCroquette(PositionControl p)
           
 
Method Summary
 void filter(Image f)
          processes a frame.
 java.awt.Component getFilterControlComponent()
          defines the Component that controls this filter
 java.lang.String getName()
          defines the name of the filter
 java.awt.Shape getShape()
           
static void main(java.lang.String[] args)
           
 void paint(java.awt.Graphics g)
          Called by the Player: draw the ROI
 void setComponent(java.awt.Component c)
          Set the component that displays the image, so that the crosses can be moved with the mouse.
 void setListener(ParticleTrackerListener ptl)
          Sets the object that wants to receive the data collected by the particle tracker.
 
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, toString, 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

CROSS_L

public static int CROSS_L
Length of the arms of the cross


CROSS_H

public static int CROSS_H
Width of the arms of the cross


CALIBR_STEP

public static double CALIBR_STEP
Steps in z for calibration (microns)


CALIBR_AVR

public static int CALIBR_AVR
While calibrating, averages this number of frames

Constructor Detail

PTCroquette

public PTCroquette(PositionControl p)
Parameters:
p - the device that will control the motion of the microscope
Method Detail

getName

public java.lang.String getName()
Description copied from class: ImageFilterAdapter
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.

filter

public void filter(Image f)
processes a frame. Do not call this directly.

Specified by:
filter in class ImageFilterAdapter
Parameters:
f - the image that must be processed

getShape

public java.awt.Shape getShape()
Specified by:
getShape in interface ROI
Returns:
the Shape of the ROI

paint

public void paint(java.awt.Graphics g)
Description copied from interface: ROI
Called by the Player: draw the ROI

Specified by:
paint in interface ROI
Parameters:
g - the Graphics where to paint the ROI

setComponent

public void setComponent(java.awt.Component c)
Set the component that displays the image, so that the crosses can be moved with the mouse.

Specified by:
setComponent in interface ROI
Parameters:
c - the component from which we want to get the mouse actions

getFilterControlComponent

public java.awt.Component getFilterControlComponent()
Description copied from class: ImageFilterAdapter
defines the Component that controls this filter

Overrides:
getFilterControlComponent in class ImageFilterAdapter
Returns:
the component with controls for the effect

main

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