@ALDDerivedClass @ALDParametrizedClass public class MTBLevelEnergyDerivable_CVRegionFit extends MTBActiveContourEnergy_CVRegionFit implements MTBLevelsetEnergyDerivable
| Modifier and Type | Field and Description |
|---|---|
private DeltaApproxHelper |
deltaHelper
Helper object to calculate values of approximated function.
|
private boolean |
useHeavisideApprox
Flag to indicate if the Heaviside function should be approximated.
|
areas, iChannels, inImg, lambda_in, lambda_out, means| Constructor and Description |
|---|
MTBLevelEnergyDerivable_CVRegionFit()
Default constructor.
|
MTBLevelEnergyDerivable_CVRegionFit(MTBImage img)
Constructor with given image.
|
| 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.
|
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.
|
calcEnergy, calcInteriorEnergy, getDerivative, getEnergyDerivativeMaxVal, getEnergyDerivativeMinVal, getMeans, init, updateParametersprivate boolean useHeavisideApprox
private DeltaApproxHelper deltaHelper
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.public String toString()
toString in class MTBActiveContourEnergy_CVRegionFitpublic 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 void updateStatus(MTBLevelsetFunctionDerivable phi) throws MTBLevelsetException
MTBLevelsetEnergyDerivableupdateStatus in interface MTBLevelsetEnergyDerivablephi - Current level set function.MTBLevelsetExceptionpublic boolean initEnergy(LevelsetSolverDerivatives solver)
MTBLevelsetEnergyDerivableinitEnergy in interface MTBLevelsetEnergyDerivablesolver - Reference to solver which uses this energy.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.