de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE
Class MTBLengthEnergyFW2D2PNonPDE
java.lang.Object
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBGenericEnergyNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyFWNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyFW2DNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyFW2D2PNonPDE
public class MTBLengthEnergyFW2D2PNonPDE
- extends MTBLengthEnergyFW2DNonPDE
Implements the (standard) length energy using forward differences
for 2D images and a two phase level set function.
Length is approximated using forward differences of the heaviside function
Field Summary |
private double |
SQRT_2
|
Method Summary |
protected double |
gradMagHeaviside(double a,
double b,
double c)
calculate the gradient magnitude of the foreward difference of the heavyside function
corresponding to the level set for one pixel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SQRT_2
private final double SQRT_2
MTBLengthEnergyFW2D2PNonPDE
public MTBLengthEnergyFW2D2PNonPDE()
- Constructor
MTBLengthEnergyFW2D2PNonPDE
public MTBLengthEnergyFW2D2PNonPDE(double mu)
- Constructor
- Parameters:
mu
- weight of the length term
gradMagHeaviside
protected double gradMagHeaviside(double a,
double b,
double c)
- calculate the gradient magnitude of the foreward difference of the heavyside function
corresponding to the level set for one pixel
- Specified by:
gradMagHeaviside
in class MTBLengthEnergyFW2DNonPDE
- Parameters:
a
- heaviside functtion at (x,y,z)b
- heaviside functtion at (x+1,y,z)c
- heaviside functtion at (x,y+1,z)
- Returns:
- gradient magnitude