de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE
Class MTBLengthEnergyFW3DNonPDE

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBGenericEnergyNonPDE
      extended by de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyNonPDE
          extended by de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyFWNonPDE
              extended by de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyFW3DNonPDE
Direct Known Subclasses:
MTBLengthEnergyFW3D2PNonPDE, MTBLengthEnergyFW3DMPNonPDE

@ALDParametrizedClass
public abstract class MTBLengthEnergyFW3DNonPDE
extends MTBLengthEnergyFWNonPDE

Implements the (standard) length energy using forward differences for 3D images. This is an abstract class, gradMagHeaviside still needs to be implemented.


Field Summary
 
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyNonPDE
doNormalization, FLAG_LENGTH, mu, scaleFactor
 
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBGenericEnergyNonPDE
debug, name
 
Constructor Summary
MTBLengthEnergyFW3DNonPDE()
          constructor
MTBLengthEnergyFW3DNonPDE(double mu)
          constructor
 
Method Summary
 double deltaE(int x, int y, int z, byte newPhase, MTBLevelsetMembership phi)
          Calculate differences of energy if the pixel/voxel (x,y,z) is changed from its current phase in the level set function phi supplied from current phase to newPhase.
 double E(int x, int y, int z, MTBLevelsetMembership phi)
          Get energy term a voxel (x,y,z) for phi.
 double E(MTBLevelsetMembership phi)
          Return the complete energy for the level set function phi.
protected abstract  double gradMagHeaviside(double a, double b, double c, double d)
          calculate the gradient magnitude of the foreward difference of the heavyside function corresponding to the level set for one voxel
 
Methods inherited from class de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyFWNonPDE
createEnergy, init
 
Methods inherited from class de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyNonPDE
setScaleFactor, toString
 
Methods inherited from class de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBGenericEnergyNonPDE
deltaE, estimateParams, getNewIndent, print, setDebug, updateParams, updateParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MTBLengthEnergyFW3DNonPDE

public MTBLengthEnergyFW3DNonPDE(double mu)
constructor

Parameters:
mu - weight of the length term

MTBLengthEnergyFW3DNonPDE

public MTBLengthEnergyFW3DNonPDE()
constructor

Method Detail

deltaE

public double deltaE(int x,
                     int y,
                     int z,
                     byte newPhase,
                     MTBLevelsetMembership phi)
Description copied from class: MTBGenericEnergyNonPDE
Calculate differences of energy if the pixel/voxel (x,y,z) is changed from its current phase in the level set function phi supplied from current phase to newPhase.

Overrides:
deltaE in class MTBLengthEnergyFWNonPDE
newPhase - new phase to change the pixel/voxel to
phi - level set function assumed to be associated with this energy object
Returns:
difference of energy

gradMagHeaviside

protected abstract double gradMagHeaviside(double a,
                                           double b,
                                           double c,
                                           double d)
calculate the gradient magnitude of the foreward difference of the heavyside function corresponding to the level set for one voxel

Parameters:
a - heaviside functtion at (x,y,z)
b - heaviside functtion at (x+1,y,z)
c - heaviside functtion at (x,y+1,z)
d - heaviside functtion at (x,y,z+1)
Returns:
weight of the length term

E

public double E(MTBLevelsetMembership phi)
Description copied from class: MTBGenericEnergyNonPDE
Return the complete energy for the level set function phi.
Note: this may be an expensive operation.

Overrides:
E in class MTBLengthEnergyFWNonPDE
Parameters:
phi - level set function assumed to be associated with this energy object
Returns:
energy

E

public double E(int x,
                int y,
                int z,
                MTBLevelsetMembership phi)
Get energy term a voxel (x,y,z) for phi.

Parameters:
x -
y -
z -
phi -
Returns:
energy


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