@ALDDerivedClass @ALDParametrizedClass public class MTBLevelEnergyDerivable_Area extends Object implements MTBLevelsetEnergyDerivable
Modifier and Type | Field and Description |
---|---|
private DeltaApproxHelper |
deltaHelper
Helper object for calculating approximated values of Heaviside function.
|
private boolean |
useHeavisideApprox
Flag to indicate if the Heaviside function should be approximated.
|
Constructor and Description |
---|
MTBLevelEnergyDerivable_Area()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private boolean useHeavisideApprox
private DeltaApproxHelper deltaHelper
public MTBLevelEnergyDerivable_Area()
public boolean initEnergy(LevelsetSolverDerivatives solver)
MTBLevelsetEnergyDerivable
initEnergy
in interface MTBLevelsetEnergyDerivable
solver
- Reference to solver which uses this energy.public void updateStatus(MTBLevelsetFunctionDerivable phi)
MTBLevelsetEnergyDerivable
updateStatus
in interface MTBLevelsetEnergyDerivable
phi
- Current level set function.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 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.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.