public class CopyAndAdjustAlgorithm extends java.lang.Object implements ITrackingAlgorithm
| Constructor and Description |
|---|
CopyAndAdjustAlgorithm() |
| 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 |
beforeBatchNotSafe(int firstFrameNo) |
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.
|
public java.lang.String getName()
ITrackingAlgorithmgetName in interface ITrackingAlgorithmpublic java.lang.String getClassName()
ITrackingAlgorithmgetClassName in interface ITrackingAlgorithmpublic java.lang.String getAbbrev()
ITrackingAlgorithmgetAbbrev in interface ITrackingAlgorithmpublic void step(int frameNo,
VPoint translation)
ITrackingAlgorithmTypically, 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)
step in interface ITrackingAlgorithmframeNo - the frame to processtranslation - translation with regards to the previous frame (not necessarily frameNo-1, if that one is ignored)public void beforeStep(int frameNo)
ITrackingAlgorithmbeforeStep in interface ITrackingAlgorithmpublic void beforeBatch(int firstFrameNo)
ITrackingAlgorithmbeforeBatch in interface ITrackingAlgorithmpublic void beforeBatchNotSafe(int firstFrameNo)