|
||||||||||
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.MTBTermAreaDiffSlidingOffset
@ALDDerivedClass @ALDParametrizedClass public class MTBTermAreaDiffSlidingOffset
Check upon snake termination by area change within the snake.
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.termination.MTBTermination |
---|
optimizer, status, verbose |
Constructor Summary | |
---|---|
MTBTermAreaDiffSlidingOffset()
Default constructor. |
|
MTBTermAreaDiffSlidingOffset(double _areaFraction)
|
Method Summary | |
---|---|
MTBTermAreaDiffSlidingOffset |
clone()
Clones this object. |
double |
getAreaFraction()
Get area 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 area difference 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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MTBTermAreaDiffSlidingOffset()
public MTBTermAreaDiffSlidingOffset(double _areaFraction)
Method Detail |
---|
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 double getAreaFraction()
public String toString()
MTBTermination
toString
in class MTBTermination
public MTBTermAreaDiffSlidingOffset 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 MTBTermination
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |