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

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

@ALDDerivedClass
@ALDParametrizedClass
public class MTBGammaPtWiseExtEner
extends MTBGammaUpdate

Class for gamma adaptation depending on the external energy values for each snake control point. Adaptation calculation: Gamma-function acts like an root square function. High energy value means high gamma value an low energy value means low gamma value. This adaptation strategy was developed for the distance map as external snake energy.

Author:
misiak

Field Summary
 
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaUpdate
adaptedGamma, optimizer, verbose
 
Constructor Summary
MTBGammaPtWiseExtEner()
          Standardconstructor
 
Method Summary
 double[][] adaptGamma()
          Gamma adaptation using a point wise adaptation, depending on the current snake and the external energy force.
 MTBGammaPtWiseExtEner clone()
          Clones this object.
 boolean init(SnakeOptimizerSingleVarCalc opt)
          Initializing routine which is called once before the gamma adaptation is actually used.
 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

MTBGammaPtWiseExtEner

public MTBGammaPtWiseExtEner()
Standardconstructor

Method Detail

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.

adaptGamma

public double[][] adaptGamma()
Gamma adaptation using a point wise adaptation, depending on the current snake and the external energy force. Adaptation calculation: Gamma-function acts like an root square function. High energy value means high gamma value an low energy value means low gamma value. This adaptation strategy was developed for the distance map as external snake energy.

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

toString

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

Specified by:
toString in class MTBGammaUpdate

clone

public MTBGammaPtWiseExtEner clone()
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


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