de.unihalle.informatik.MiToBo.segmentation.levelset.core.energies.derivable
Class MTBLevelEnergyDerivable_Area

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.levelset.core.energies.derivable.MTBLevelEnergyDerivable_Area
All Implemented Interfaces:
MTBActiveContourEnergy, MTBActiveContourEnergyDerivable, MTBLevelsetEnergyDerivable

@ALDDerivedClass
@ALDParametrizedClass
public class MTBLevelEnergyDerivable_Area
extends Object
implements MTBLevelsetEnergyDerivable

Level set energy minimizing area enclosed by the zero level.

Author:
Michael Schneider

Constructor Summary
MTBLevelEnergyDerivable_Area()
          Default constructor.
 
Method Summary
 double getDerivative(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
          Get the energy derivative value, i.e. velocity, for position (x,y,z).
 double getDerivativeWithoutDelta(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
          Get the energy derivative value, i.e. velocity, for position (x,y,z).
 boolean initEnergy(LevelsetSolverDerivatives solver)
          Initializes the energy object according to given solver settings.
 void updateStatus(MTBLevelsetFunctionDerivable phi)
          Function which updates the internal status of the energy.
 void useHeavideApproximation(boolean flag)
          Enable or disable approximation of Heaviside function.
 String validate()
          Function to validate configuration of energy object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTBLevelEnergyDerivable_Area

public MTBLevelEnergyDerivable_Area()
Default constructor.

Method Detail

initEnergy

public boolean initEnergy(LevelsetSolverDerivatives solver)
Description copied from interface: MTBLevelsetEnergyDerivable
Initializes the energy object according to given solver settings.

Specified by:
initEnergy in interface MTBLevelsetEnergyDerivable
Parameters:
solver - Reference to solver which uses this energy.
Returns:
True, if initialization was successful.

updateStatus

public void updateStatus(MTBLevelsetFunctionDerivable phi)
Description copied from interface: MTBLevelsetEnergyDerivable
Function which updates the internal status of the energy.

Specified by:
updateStatus in interface MTBLevelsetEnergyDerivable
Parameters:
phi - Current level set function.

getDerivative

public double getDerivative(MTBLevelsetFunctionDerivable phi,
                            int x,
                            int y,
                            int z)
Description copied from interface: MTBLevelsetEnergyDerivable
Get the energy derivative value, i.e. velocity, for position (x,y,z).

Specified by:
getDerivative in interface MTBLevelsetEnergyDerivable
Parameters:
phi - Level set function.
x - x coordinate of requested position.
y - y coordinate of requested position.
z - z coordinate of requested position.
Returns:
Derivative value at given location.

getDerivativeWithoutDelta

public double getDerivativeWithoutDelta(MTBLevelsetFunctionDerivable phi,
                                        int x,
                                        int y,
                                        int z)
Description copied from interface: MTBLevelsetEnergyDerivable
Get the energy derivative value, i.e. velocity, for position (x,y,z).

Here the value of the Dirac impulse function is ignored (if present).

Specified by:
getDerivativeWithoutDelta in interface MTBLevelsetEnergyDerivable
Parameters:
phi - Level set function.
x - x coordinate of requested position.
y - y coordinate of requested position.
z - z coordinate of requested position.
Returns:
Derivative value without Dirac factor at given location.

validate

public String validate()
Description copied from interface: MTBLevelsetEnergyDerivable
Function to validate configuration of energy object.

Specified by:
validate in interface MTBLevelsetEnergyDerivable
Returns:
If null, everything is ok, otherwise an error message.

useHeavideApproximation

public void useHeavideApproximation(boolean flag)
Description copied from interface: MTBLevelsetEnergyDerivable
Enable or disable approximation of Heaviside function.

Specified by:
useHeavideApproximation in interface MTBLevelsetEnergyDerivable
Parameters:
flag - If true, approximation is enabled, otherwise disabled.


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