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()
ITrackingAlgorithm
getName
in interface ITrackingAlgorithm
public java.lang.String getClassName()
ITrackingAlgorithm
getClassName
in interface ITrackingAlgorithm
public java.lang.String getAbbrev()
ITrackingAlgorithm
getAbbrev
in interface ITrackingAlgorithm
public void step(int frameNo, VPoint translation)
ITrackingAlgorithm
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)
step
in interface ITrackingAlgorithm
frameNo
- 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)
ITrackingAlgorithm
beforeStep
in interface ITrackingAlgorithm
public void beforeBatch(int firstFrameNo)
ITrackingAlgorithm
beforeBatch
in interface ITrackingAlgorithm
public void beforeBatchNotSafe(int firstFrameNo)