@ALDParametrizedClass @ALDDerivedClass public class MTBMeijeringFittingEnergyNonPDE extends MTBGenericEnergyNonPDE
Modifier and Type | Field and Description |
---|---|
private MTBImage |
img
Image to be segmented
|
private double[] |
mean |
private int |
numPhases |
private int |
sizeX |
private int |
sizeY |
private int |
sizeZ |
private double[] |
var |
debug, name
Constructor and Description |
---|
MTBMeijeringFittingEnergyNonPDE()
constructor
|
MTBMeijeringFittingEnergyNonPDE(MTBImage img,
MTBLevelsetMembership phi)
constructor
|
Modifier and Type | Method and Description |
---|---|
double |
deltaE(int x,
int y,
int z,
short 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 . |
protected void |
estimateParams(MTBLevelsetMembership phi)
Estimate internal parameters (if any) for the level set function
phi
assumed to be associated with this energy object. |
MTBGenericEnergyNonPDE |
init(MTBImage img,
MTBLevelsetMembership phi)
Initialize the energy object.
|
void |
print(MTBLevelsetMembership phi,
PrintStream out,
String indent)
Print this energy object - including the value of the energy for
phi assumed to be associated with this energy object. |
String |
toString()
Return an ascii representation identifying the energy and internal parameters,
but not the state.
|
void |
updateParams(int x,
int y,
int z,
short newPhase,
MTBLevelsetMembership phi)
Update parameters (if any) of the energy object which depend on
the associated level set function.
|
deltaE, getNewIndent, setDebug, updateParams
@ALDClassParameter(label="Input image") private MTBImage img
private int numPhases
private double[] mean
private double[] var
private int sizeX
private int sizeY
private int sizeZ
public MTBMeijeringFittingEnergyNonPDE()
public MTBMeijeringFittingEnergyNonPDE(MTBImage img, MTBLevelsetMembership phi)
img
- phi
- public MTBGenericEnergyNonPDE init(MTBImage img, MTBLevelsetMembership phi)
NOTE: The image provided as argument to this method is only associated with the energy object, if not already set!! This rational behind this is to allow the energy to be supplied generically with the input image and while it is still possible to set an image deviating from this default.
init
in class MTBGenericEnergyNonPDE
img
- Image to be segmentedphi
- Level set function to construct the energy object forprotected void estimateParams(MTBLevelsetMembership phi)
MTBGenericEnergyNonPDE
phi
assumed to be associated with this energy object.estimateParams
in class MTBGenericEnergyNonPDE
public void updateParams(int x, int y, int z, short newPhase, MTBLevelsetMembership phi)
MTBGenericEnergyNonPDE
This method is called to update the parameters if is is intended to change the
phase of a pixel/voxel to newPhase
.
Note: The level set function phi
is still in the old state and is
assumed to be to updated subsequently.
updateParams
in class MTBGenericEnergyNonPDE
newPhase
- new phase to change pixel/voxel tophi
- assumed to be associated with this energy objectpublic double deltaE(int x, int y, int z, short newPhase, MTBLevelsetMembership phi)
MTBGenericEnergyNonPDE
phi
supplied
from current phase to newPhase
.deltaE
in class MTBGenericEnergyNonPDE
newPhase
- new phase to change the pixel/voxel tophi
- level set function assumed to be associated with this energy objectpublic double E(MTBLevelsetMembership phi)
MTBGenericEnergyNonPDE
phi
.
E
in class MTBGenericEnergyNonPDE
phi
- level set function assumed to be associated with this energy objectpublic String toString()
MTBGenericEnergyNonPDE
toString
in class MTBGenericEnergyNonPDE
public void print(MTBLevelsetMembership phi, PrintStream out, String indent)
MTBGenericEnergyNonPDE
phi
assumed to be associated with this energy object.
Each line output is prefixed with the string indent
.
Note: this may be an expensive operation.print
in class MTBGenericEnergyNonPDE
phi
- level set function assumed to be associated with this energy objectout
- stream to print toindent
- indentation stringCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.