|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.segmentation.activecontours.energies.MTBActiveContourEnergy_CVRegionFit
de.unihalle.informatik.MiToBo.segmentation.levelset.core.energies.derivable.MTBLevelEnergyDerivable_CVRegionFit
@ALDDerivedClass @ALDParametrizedClass public class MTBLevelEnergyDerivable_CVRegionFit
Implementation of Chan-Vese energy for level set functions.
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.activecontours.energies.MTBActiveContourEnergy_CVRegionFit |
---|
areas, inImg, lambda_in, lambda_out, means, means_compl |
Constructor Summary | |
---|---|
MTBLevelEnergyDerivable_CVRegionFit()
Default constructor. |
|
MTBLevelEnergyDerivable_CVRegionFit(MTBImage img)
Constructor with given image. |
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. |
String |
toString()
|
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 de.unihalle.informatik.MiToBo.segmentation.activecontours.energies.MTBActiveContourEnergy_CVRegionFit |
---|
calcEnergy, calcInteriorEnergy, getDerivative, getEnergyDerivativeMaxVal, getEnergyDerivativeMinVal, getMeans, init, updateParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MTBLevelEnergyDerivable_CVRegionFit()
public MTBLevelEnergyDerivable_CVRegionFit(MTBImage img)
Other paramters are set to lambda_in = lambda_out = mu = 1 nu = 0.
img
- Image to process.Method Detail |
---|
public String toString()
toString
in class MTBActiveContourEnergy_CVRegionFit
public double getDerivative(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
MTBLevelsetEnergyDerivable
getDerivative
in interface MTBLevelsetEnergyDerivable
phi
- Level set function.x
- x coordinate of requested position.y
- y coordinate of requested position.z
- z coordinate of requested position.
public double getDerivativeWithoutDelta(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
MTBLevelsetEnergyDerivable
Here the value of the Dirac impulse function is ignored (if present).
getDerivativeWithoutDelta
in interface MTBLevelsetEnergyDerivable
phi
- Level set function.x
- x coordinate of requested position.y
- y coordinate of requested position.z
- z coordinate of requested position.
public void updateStatus(MTBLevelsetFunctionDerivable phi) throws MTBLevelsetException
MTBLevelsetEnergyDerivable
updateStatus
in interface MTBLevelsetEnergyDerivable
phi
- Current level set function.
MTBLevelsetException
public boolean initEnergy(LevelsetSolverDerivatives solver)
MTBLevelsetEnergyDerivable
initEnergy
in interface MTBLevelsetEnergyDerivable
solver
- Reference to solver which uses this energy.
public String validate()
MTBLevelsetEnergyDerivable
validate
in interface MTBLevelsetEnergyDerivable
public void useHeavideApproximation(boolean flag)
MTBLevelsetEnergyDerivable
useHeavideApproximation
in interface MTBLevelsetEnergyDerivable
flag
- If true, approximation is enabled, otherwise disabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |