|
||||||||
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
de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.termination.MTBTermMaxIterations
@ALDDerivedClass @ALDParametrizedClass public class MTBTermMaxIterations
Check upon snake termination by a given number of maximal iterations of the snake. Termination is done when a maximum number of snake iterations is reached.
Field Summary | |
---|---|
private int |
maxIterations
Maximum number of iterations. |
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.termination.MTBTermination |
---|
optimizer, status, verbose |
Constructor Summary | |
---|---|
MTBTermMaxIterations()
Default constructor. |
|
MTBTermMaxIterations(int _maxIterations)
Constructor with maximum number of iterations on which the snake optimization is terminated. |
Method Summary | |
---|---|
MTBTermMaxIterations |
clone()
Clones this object. |
int |
getMaxIter()
Get maximum iteration count. |
boolean |
init(SnakeOptimizerSingle opt)
Initializing routine which is called once before the termination is actually used. |
SnakeOptimizer.Snake_status |
terminate()
Termination is done when a maximum number of snake iterations is reached. |
java.lang.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="Maximum Iteration Count") private int maxIterations
Constructor Detail |
---|
public MTBTermMaxIterations()
public MTBTermMaxIterations(int _maxIterations)
Method Detail |
---|
public MTBTermMaxIterations clone() throws java.lang.CloneNotSupportedException
Note that the SnakeOptimizerSingle
object is left null!
You have to call SnakeOptimizer.initOptimizer()
before
using the gamma updater.
clone
in class MTBTermination
java.lang.CloneNotSupportedException
public int getMaxIter()
public boolean init(SnakeOptimizerSingle opt)
MTBTermination
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.
init
in class MTBTermination
opt
- calling snake optimizer
public SnakeOptimizer.Snake_status terminate()
terminate
in class MTBTermination
public java.lang.String toString()
MTBTermination
toString
in class MTBTermination
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |