|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.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 Image s. |
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 ImageSource
fs
- the object that reads the framespublic void setSource(ImageSource fs)
ImageSink
Image
s.
setSource
in interface ImageSink
fs
- the object that sends the framespublic int getWidth()
getWidth
in interface Dimensions
public int getHeight()
getHeight
in interface Dimensions
public java.awt.Dimension getSize()
getSize
in interface Dimensions
public java.lang.String getName()
public void setListener(ParticleTrackerListener ptl)
ParticleTracker
setListener
in interface ParticleTracker
ptl
- 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.Object
public void receive(Image f)
receive
in interface ImageSink
f
- the new frame that must be displayedpublic java.awt.Component getControlComponent()
getControlComponent
in interface Control
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |