@ALDParametrizedClass public interface MTBLevelsetEnergyDerivable extends MTBActiveContourEnergyDerivable
In general energies implementing this interface are required to allow for calculation of partial derivatives at given positions.
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.
|
boolean initEnergy(LevelsetSolverDerivatives solver) throws MTBLevelsetException
solver
- Reference to solver which uses this energy.MTBLevelsetException
String validate()
void updateStatus(MTBLevelsetFunctionDerivable phi) throws MTBLevelsetException
phi
- Current level set function.MTBLevelsetException
double getDerivative(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
phi
- Level set function.x
- x coordinate of requested position.y
- y coordinate of requested position.z
- z coordinate of requested position.double getDerivativeWithoutDelta(MTBLevelsetFunctionDerivable phi, int x, int y, int z)
Here the value of the Dirac impulse function is ignored (if present).
phi
- Level set function.x
- x coordinate of requested position.y
- y coordinate of requested position.z
- z coordinate of requested position.void useHeavideApproximation(boolean flag)
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.