de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE
Class MTBLengthEnergyKB2D2PNonPDE
java.lang.Object
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBGenericEnergyNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyKBNonPDE
de.unihalle.informatik.MiToBo.segmentation.levelset.nonPDE.MTBLengthEnergyKB2D2PNonPDE
- Direct Known Subclasses:
- MTBLengthEnergyKB2D2P4NNonPDE
@ALDParametrizedClass
public abstract class MTBLengthEnergyKB2D2PNonPDE
- extends MTBLengthEnergyKBNonPDE
Implements the (standard) length energy using length approximation
due to Kolmogorov/Boykov for two phases.
Does NOT take invalid pixels into account
This is an abstract class, neighborhood coordinates and weights have to
be still defined.
For notation see Danek, Matula: Graph cuts and approximation pf the Eucleidean metric
on anisotropic grids, VISAPP 2010, 68-73.
Method Summary |
double |
deltaE(int x,
int y,
int z,
byte newPhase,
MTBLevelsetMembership phi)
Calculate differences of energy if the pixel/voxel (x,y,z) is changed
from its current phase in the level set function phi supplied
from current phase to newPhase . |
double |
E(MTBLevelsetMembership phi)
Return the complete energy for the level set function phi . |
MTBLengthEnergyKB2D2PNonPDE
public MTBLengthEnergyKB2D2PNonPDE()
- constructor
MTBLengthEnergyKB2D2PNonPDE
public MTBLengthEnergyKB2D2PNonPDE(double mu)
- constructor
- Parameters:
mu
-
deltaE
public double deltaE(int x,
int y,
int z,
byte newPhase,
MTBLevelsetMembership phi)
- Description copied from class:
MTBGenericEnergyNonPDE
- Calculate differences of energy if the pixel/voxel (x,y,z) is changed
from its current phase in the level set function
phi
supplied
from current phase to newPhase
.
- Overrides:
deltaE
in class MTBLengthEnergyKBNonPDE
newPhase
- new phase to change the pixel/voxel tophi
- level set function assumed to be associated with this energy object
- Returns:
- difference of energy
E
public double E(MTBLevelsetMembership phi)
- Description copied from class:
MTBGenericEnergyNonPDE
- Return the complete energy for the level set function
phi
.
Note: this may be an expensive operation.
- Overrides:
E
in class MTBLengthEnergyKBNonPDE
- Parameters:
phi
- level set function assumed to be associated with this energy object
- Returns:
- energy
Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.