|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.segmentation.activecontours.energies.MTBActiveContourEnergy_CVRegionFit
public class MTBActiveContourEnergy_CVRegionFit
Active contour energy based on Chan-Vese region fitting for single contour.
This energy models the inner and outer regions of a contour by a Gaussian model, i.e. each region is specified by a mean intensity value and deviations from this value are penalized.
Note that class 0 is interpreted as background while class 1 is taken as foreground or contour interior. If the provided membership function represents more than two classes, only the first two of them are used and all others ignored.
Field Summary | |
---|---|
protected int[] |
areas
Region sizes. |
private CalcSegmentationStatistics |
imgStatsOp
Operator to calculate energy parameters, i.e., some statistical numbers on the regions of the segmentation. |
protected MTBImage |
inImg
Image to work on. |
protected double |
lambda_in
Weighting factor for inner region fit. |
protected double |
lambda_out
Weighting factor for outer region fit. |
protected double[] |
means
Average intensities. |
protected double[] |
means_compl
Average intensities of non-regions. |
Constructor Summary | |
---|---|
MTBActiveContourEnergy_CVRegionFit()
Default constructor. |
|
MTBActiveContourEnergy_CVRegionFit(MTBImage im,
double lin,
double lout)
Default constructor with arguments. |
Method Summary | |
---|---|
protected double |
calcEnergy(MTBSegmentationInterface seg)
|
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. |
protected double |
getEnergyDerivativeMinVal()
Returns the minimum possible derivative value this energy may yield. |
protected double[] |
getMeans()
Returns the average region intensities last calculated. |
protected void |
init()
Method to properly initialize instances of this class. |
java.lang.String |
toString()
|
protected void |
updateParameters(MTBSegmentationInterface mem)
Updates parameters according to given membership. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient int[] areas
private transient CalcSegmentationStatistics imgStatsOp
@ALDClassParameter(label="Input Image", mode=ADVANCED, dataIOOrder=-10) protected transient MTBImage inImg
@ALDClassParameter(label="Interior Lambda", mode=STANDARD, dataIOOrder=-5) protected double lambda_in
@ALDClassParameter(label="Exterior Lambda", mode=STANDARD, dataIOOrder=-4) protected double lambda_out
protected transient double[] means
protected transient double[] means_compl
A non-region is the complement of a region with regarding the segmentation, i.e., subsumes all pixels belonging to any other region.
Constructor Detail |
---|
public MTBActiveContourEnergy_CVRegionFit()
public MTBActiveContourEnergy_CVRegionFit(MTBImage im, double lin, double lout)
im
- Image to work on.l_in
- Weighting factor for inner region fit.l_out
- Weighting factor for outer region fit.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
protected double calcEnergy(MTBSegmentationInterface seg)
protected double getDerivative(MTBSegmentationInterface seg, int x, int y, int z)
protected double getEnergyDerivativeMaxVal()
protected double getEnergyDerivativeMinVal()
protected double[] getMeans()
protected void init() throws MTBActiveContourException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
MTBActiveContourException
public java.lang.String toString()
toString
in class java.lang.Object
protected void updateParameters(MTBSegmentationInterface mem) throws MTBActiveContourException
mem
- Current segmentation object.
MTBActiveContourException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |