@ALDParametrizedClass public abstract class MTBLengthEnergyFW3DNonPDE extends MTBLengthEnergyFWNonPDE
doNormalization, FLAG_LENGTH, mu, scaleFactor
debug, name
Constructor and Description |
---|
MTBLengthEnergyFW3DNonPDE()
constructor
|
MTBLengthEnergyFW3DNonPDE(double mu)
constructor
|
Modifier and Type | Method and Description |
---|---|
double |
deltaE(int x,
int y,
int z,
short 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
|
createEnergy, init
setScaleFactor, toString
deltaE, estimateParams, getNewIndent, print, setDebug, updateParams, updateParams
public MTBLengthEnergyFW3DNonPDE(double mu)
mu
- weight of the length termpublic MTBLengthEnergyFW3DNonPDE()
public double deltaE(int x, int y, int z, short newPhase, MTBLevelsetMembership phi)
MTBGenericEnergyNonPDE
phi
supplied
from current phase to newPhase
.deltaE
in class MTBLengthEnergyFWNonPDE
newPhase
- new phase to change the pixel/voxel tophi
- level set function assumed to be associated with this energy objectprotected abstract double gradMagHeaviside(double a, double b, double c, double d)
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)public double E(MTBLevelsetMembership phi)
MTBGenericEnergyNonPDE
phi
.
E
in class MTBLengthEnergyFWNonPDE
phi
- level set function assumed to be associated with this energy objectpublic double E(int x, int y, int z, MTBLevelsetMembership phi)
x
- y
- z
- phi
- Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.