|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.segmentation.snakes.optimize.termination.MTBTermination
@ALDParametrizedClass public abstract class MTBTermination
Class for checking termination criteria of the current snake iteration. Termination criteria can be defined by several methods, which can be found in the derived classes in detail.
Field Summary | |
---|---|
protected SnakeOptimizerSingle |
optimizer
Current snake optimizer with all its parameters and fields. |
protected SnakeOptimizer.Snake_status |
status
Status of current snake. |
protected boolean |
verbose
Flag to turn display of additional information on/off. |
Constructor Summary | |
---|---|
MTBTermination()
|
Method Summary | |
---|---|
abstract MTBTermination |
clone()
Clones this object. |
abstract boolean |
init(SnakeOptimizerSingle opt)
Initializing routine which is called once before the termination is actually used. |
abstract SnakeOptimizer.Snake_status |
terminate()
Method to check termination status of the snake. |
abstract String |
toString()
Method for short termination description name. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@ALDClassParameter(label="Verbose", dataIOOrder=100) protected boolean verbose
protected SnakeOptimizerSingle optimizer
Parameters and fields include, e.g., the current snake, old snake, gamma values and energies.
protected SnakeOptimizer.Snake_status status
Termination status can be SNAKE_DONE or SNAKE_SUCCESS.
Constructor Detail |
---|
public MTBTermination()
Method Detail |
---|
public abstract SnakeOptimizer.Snake_status terminate()
public abstract boolean init(SnakeOptimizerSingle opt)
In this routine global parameter settings can be handled or other initialization stuff be done. The SnakeOptimizer will call this routine once before the actual use of the termination strategy. If no stuff needs to be done in advance the routine should at least return true.
opt
- calling snake optimizer
public abstract String toString()
toString
in class Object
public abstract MTBTermination clone() throws CloneNotSupportedException
Note that all internal variables should be cloned. As this is not
possible for the SnakeOptimizerSingle
object the internal
reference should be left to null. It will be properly initialized
later when SnakeOptimizerSingle.initOptimizer()
is invoked.
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |