@ALDDerivedClass @ALDParametrizedClass public class MTBTermMotionDiff extends MTBTermination
Termination is done when the snake control point motion of the former and the current snake is below a given fraction factor or if a maximum number of iterations is reached.
| Modifier and Type | Field and Description | 
|---|---|
| private int | maxIterationsMaximum number of iterations. | 
| private double | motionFractionMotion fraction factor. | 
optimizer, status, verbose| Constructor and Description | 
|---|
| MTBTermMotionDiff()Default constructor. | 
| MTBTermMotionDiff(double _motionFraction,
                 int _maxIterations)Constructor with motion fraction factor and maximum iteration count. | 
| Modifier and Type | Method and Description | 
|---|---|
| MTBTermMotionDiff | clone()Clones this object. | 
| int | getMaxIter()Get maximum iteration count. | 
| double | getMotionFraction()Get motion fraction. | 
| boolean | init(SnakeOptimizerSingle opt)Initializing routine which is called once before the termination is
 actually used. | 
| SnakeOptimizer.Snake_status | terminate()Termination is done when the snake control point motion of the former and
 the current snake is below a given fraction factor or if a maximum number
 of iterations is reached. | 
| String | toString()Method for short termination description name. | 
@ALDClassParameter(label="Motion Fraction") private double motionFraction
@ALDClassParameter(label="Maximum Iteration Count") private int maxIterations
public MTBTermMotionDiff()
public MTBTermMotionDiff(double _motionFraction,
                         int _maxIterations)
_motionFraction - motion fraction_maxIterations - maximum iteration countpublic boolean init(SnakeOptimizerSingle opt)
MTBTerminationIn 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 MTBTerminationopt - calling snake optimizerpublic SnakeOptimizer.Snake_status terminate()
terminate in class MTBTerminationpublic double getMotionFraction()
public int getMaxIter()
public String toString()
MTBTerminationtoString in class MTBTerminationpublic MTBTermMotionDiff clone() throws CloneNotSupportedException
 Note that the SnakeOptimizerSingle object is left null! 
 You have to call SnakeOptimizer.initOptimizer() before 
 using the gamma updater.
clone in class MTBTerminationCloneNotSupportedExceptionCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.