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

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaUpdate
      extended by de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaNone
All Implemented Interfaces:
java.lang.Cloneable

@ALDDerivedClass
@ALDParametrizedClass
public class MTBGammaNone
extends MTBGammaUpdate

Class which is not changing the gamma values.

No adaptation is made. The given values will simply be returned.

Author:
misiak

Field Summary
 
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaUpdate
adaptedGamma, optimizer, verbose
 
Constructor Summary
MTBGammaNone()
          Standard constructor.
 
Method Summary
 double[][] adaptGamma()
          No gamma adaptation is made.
 MTBGammaNone clone()
          Clones this object.
 boolean init(SnakeOptimizerSingleVarCalc opt)
          Initializing routine which is called once before the gamma adaptation is actually used.
 java.lang.String toString()
          Method for short adaptation description name.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MTBGammaNone

public MTBGammaNone()
Standard constructor.

Method Detail

adaptGamma

public double[][] adaptGamma()
No gamma adaptation is made. Old values will be returned.

Specified by:
adaptGamma in class MTBGammaUpdate
Returns:
New adapted gamma values.

clone

public MTBGammaNone clone()
                   throws java.lang.CloneNotSupportedException
Clones this object.

Note that the SnakeOptimizerSingle object is left null! You have to call SnakeOptimizer.initOptimizer() before using the gamma updater.

Specified by:
clone in class MTBGammaUpdate
Throws:
java.lang.CloneNotSupportedException

init

public boolean init(SnakeOptimizerSingleVarCalc opt)
Description copied from class: MTBGammaUpdate
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.

Specified by:
init in class MTBGammaUpdate
Parameters:
opt - calling snake optimizer
Returns:
True if init was successful.

toString

public java.lang.String toString()
Description copied from class: MTBGammaUpdate
Method for short adaptation description name.

Specified by:
toString in class MTBGammaUpdate