|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJSci.instruments.PTTemplate
public class PTTemplate
Find a given template in a two dimensional image. Usage: press Add button; the image stops; select a template with the inner rectangle; press Done. The tracking starts immediately. If you want to track another object, simply repeat the procedure. Select an object number before Remove.
| Nested Class Summary | |
|---|---|
(package private) static class |
PTTemplate.SimulatedBarycentreSource
|
| Field Summary | |
|---|---|
(package private) javax.swing.JComponent |
comp
|
| Constructor Summary | |
|---|---|
PTTemplate(TwoROI r)
|
|
| Method Summary | |
|---|---|
java.awt.Component |
getControlComponent()
defines the Component that controls this filter |
int |
getHeight()
|
java.lang.String |
getName()
defines the name of the filter |
java.awt.Dimension |
getSize()
|
int |
getWidth()
|
static void |
main(java.lang.String[] args)
|
void |
receive(Image f)
find the bead |
void |
setListener(ParticleTrackerListener ptl)
Sets the object that wants to receive the data collected by the particle tracker. |
void |
setSink(ImageSink fs)
set the object that must read the frames through receive() method. |
void |
setSource(ImageSource fs)
set the object that sends the Images. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
javax.swing.JComponent comp
| Constructor Detail |
|---|
public PTTemplate(TwoROI r)
r - a TwoROI is needed. The inner rectangle represents the
template to be searched for; the outer represents the region in which the template is searched.| Method Detail |
|---|
public void setSink(ImageSink fs)
ImageSource
setSink in interface ImageSourcefs - the object that reads the framespublic void setSource(ImageSource fs)
ImageSinkImages.
setSource in interface ImageSinkfs - the object that sends the framespublic int getWidth()
getWidth in interface Dimensionspublic int getHeight()
getHeight in interface Dimensionspublic java.awt.Dimension getSize()
getSize in interface Dimensionspublic java.lang.String getName()
public void setListener(ParticleTrackerListener ptl)
ParticleTracker
setListener in interface ParticleTrackerptl - the object that receives the data; each time a new
image is processed, ptl.receivePosition() is called.public java.lang.String toString()
toString in class java.lang.Objectpublic void receive(Image f)
receive in interface ImageSinkf - the new frame that must be displayedpublic java.awt.Component getControlComponent()
getControlComponent in interface Controlpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||