@ALDDerivedClass @ALDParametrizedClass public class MTBLevelEnergyDerivable_Length 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_Length()
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_Length()
public boolean initEnergy(LevelsetSolverDerivatives solver)
MTBLevelsetEnergyDerivableinitEnergy in interface MTBLevelsetEnergyDerivablesolver - Reference to solver which uses this energy.public void updateStatus(MTBLevelsetFunctionDerivable phi)
MTBLevelsetEnergyDerivableupdateStatus in interface MTBLevelsetEnergyDerivablephi - Current level set function.public double getDerivative(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
MTBLevelsetEnergyDerivablegetDerivative in interface MTBLevelsetEnergyDerivablephi - 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)
MTBLevelsetEnergyDerivableHere the value of the Dirac impulse function is ignored (if present).
getDerivativeWithoutDelta in interface MTBLevelsetEnergyDerivablephi - Level set function.x - x coordinate of requested position.y - y coordinate of requested position.z - z coordinate of requested position.public String validate()
MTBLevelsetEnergyDerivablevalidate in interface MTBLevelsetEnergyDerivablepublic void useHeavideApproximation(boolean flag)
MTBLevelsetEnergyDerivableuseHeavideApproximation in interface MTBLevelsetEnergyDerivableflag - If true, approximation is enabled, otherwise disabled.Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.