@ALDParametrizedClass public class MTBActiveContourEnergy_MeanSep extends Object
This energy model tries to best separate the average intensity values of the inner and outer regions of a contour:
Yezzi, Tsai, Willsky, "A Fully Global Approach to Image Segmentation via Coupled Curve Evolution Equations", JVCIR, 13, 195-216 (2002)
Modifier and Type | Field and Description |
---|---|
protected int[] |
areas
Region sizes.
|
protected int |
iDepth
Depth of working image.
|
protected int |
iHeight
Height of working image.
|
protected CalcSegmentationStatistics |
imgStatsOp
Operator to calculate energy parameters.
|
protected MTBImage |
inImg
Image to work on.
|
protected double |
inRange
Dynamic range of image intensities.
|
protected int |
iSize
Total area/volume of working image.
|
protected int |
iWidth
Width of working image.
|
protected double[] |
means
Average intensities.
|
Constructor and Description |
---|
MTBActiveContourEnergy_MeanSep()
Default constructor.
|
MTBActiveContourEnergy_MeanSep(MTBImage im)
Default constructor with parameter.
|
Modifier and Type | Method and Description |
---|---|
protected double |
getDerivative(MTBSegmentationInterface seg,
int x,
int y,
int z)
Returns the energy derivative value at position (x,y,z).
|
protected double |
getEnergyDerivativeMaxVal()
Returns the maximum possible derivative value this energy may yield.
|
double |
getEnergyDerivativeMinVal()
Returns the minimum possible derivative value this energy may yield.
|
protected void |
init()
Method to properly initialize instances of this class.
|
String |
toString() |
protected void |
updateParameters(MTBSegmentationInterface seg)
Updates internal parameters according to given segmentation.
|
@ALDClassParameter(label="Input Image", mode=ADVANCED, dataIOOrder=-10) protected transient MTBImage inImg
protected transient int iWidth
protected transient int iHeight
protected transient int iDepth
protected transient int iSize
protected transient double inRange
protected transient CalcSegmentationStatistics imgStatsOp
Parameter are basically the region sizes and intensity averages.
protected transient int[] areas
protected transient double[] means
public MTBActiveContourEnergy_MeanSep()
public MTBActiveContourEnergy_MeanSep(MTBImage im)
im
- Image to work on.protected void init() throws MTBActiveContourException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
MTBActiveContourException
protected void updateParameters(MTBSegmentationInterface seg) throws MTBActiveContourException
seg
- Current segmentation.MTBActiveContourException
protected double getDerivative(MTBSegmentationInterface seg, int x, int y, int z)
protected double getEnergyDerivativeMaxVal()
public double getEnergyDerivativeMinVal()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.