public interface ITrackingAlgorithm
Modifier and Type | Method and Description |
---|---|
void |
beforeBatch(int firstFrameNo)
Invoked before processing batch.
Eg, say a user wants to process 10 frames: beforeBatch is called once before beforeStep is called 10 times Typically used to show a dialog and acquire algorithm parameters. |
void |
beforeStep(int frameNo)
Invoked before every step()
|
java.lang.String |
getAbbrev()
Abbreviation, used for display in the frame tree
|
java.lang.String |
getClassName()
Class name, used for instantiation.
|
java.lang.String |
getName()
A friendly name, to be shown to the user.
|
void |
step(int frameNo,
VPoint translation)
This is the main function to implement - the one that performs the tracking / segmentation.
|
void step(int frameNo, VPoint translation)
Typically, from within this function you'll call:
CurrentExperiment.getFrame(int frameNo)
CurrentExperiment.getBacteriasForFrame(int frameNo)
CurrentExperiment.saveROI(ij.gui.Roi roi, int frameNo, Bacteria b, int roiType)
frameNo
- the frame to processtranslation
- translation with regards to the previous frame (not necessarily frameNo-1, if that one is ignored)java.lang.String getName()
java.lang.String getClassName()
java.lang.String getAbbrev()
void beforeStep(int frameNo)
frameNo
- void beforeBatch(int firstFrameNo)
firstFrameNo
-