de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize
Class MTBGammaUpdate

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaUpdate
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MTBGammaFixed, MTBGammaNone, MTBGammaPtWiseExtEner

@ALDParametrizedClass
public abstract class MTBGammaUpdate
extends Object
implements Cloneable

Class for adaptive step size calculation of the snake step size gamma.

The step size can be adapted by several methods, which can be found in the derived classes in detail.

Author:
misiak

Field Summary
protected  double[][] adaptedGamma
          The new and adapted gamma values for all snake points.
protected  SnakeOptimizerSingleVarCalc optimizer
          Current snake optimizer with all its parameters and fields like the current snake, old snake, gamma values and energies.
protected  boolean verbose
          Flag to turn display of additional information on/off.
 
Constructor Summary
MTBGammaUpdate()
           
 
Method Summary
abstract  double[][] adaptGamma()
          Method for gamma adaptation.
abstract  MTBGammaUpdate clone()
          Clones this object.
abstract  boolean init(SnakeOptimizerSingleVarCalc opt)
          Initializing routine which is called once before the gamma adaptation is actually used.
abstract  String toString()
          Method for short adaptation description name.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

verbose

@ALDClassParameter(label="Verbose",
                   dataIOOrder=100)
protected boolean verbose
Flag to turn display of additional information on/off.


optimizer

protected transient SnakeOptimizerSingleVarCalc optimizer
Current snake optimizer with all its parameters and fields like the current snake, old snake, gamma values and energies.


adaptedGamma

protected transient double[][] adaptedGamma
The new and adapted gamma values for all snake points.

Constructor Detail

MTBGammaUpdate

public MTBGammaUpdate()
Method Detail

adaptGamma

public abstract double[][] adaptGamma()
Method for gamma adaptation. Necessary for all subclasses. If no gamma adaptation should be made, the method is doing nothing.

Returns:
New adapted gamma values.

init

public abstract boolean init(SnakeOptimizerSingleVarCalc opt)
Initializing routine which is called once before the gamma adaptation is actually used.

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 gamma update strategy. If no stuff needs to be done in advance the routine should at least return true.

Parameters:
opt - calling snake optimizer
Returns:
True if init was successful.

toString

public abstract String toString()
Method for short adaptation description name.

Overrides:
toString in class Object

clone

public abstract MTBGammaUpdate clone()
                              throws CloneNotSupportedException
Clones this object.

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.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.