|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.segmentation.snakes.datatypes.MTBSet_SnakeEnergyDerivable
@ALDParametrizedClass public class MTBSet_SnakeEnergyDerivable
Container data type for snake energies in PDE approaches.
Objects of this class contain a set of snake energies to be used in snake optimization. With each energy an individual weight is associated which allows application-dependent snake energy combinations. Per default the weights of all energies in the set are set to 1.0.
Important notice: in MiToBo there exists a specialized data I/O provider
MTBSet_SnakeEnergyDerivableDataIOSwing
for this class; however, the provider
only supports graphical data I/O. Accordingly the class is also annotated
as parametrized class to allow for using the generic parametrized class data
I/O provider ALDParametrizedClassDataIOCmdline
when using this class
in the context of commandline user interfaces.
Field Summary | |
---|---|
protected MTBSetWeightedEnergy<MTBSnakeEnergyDerivable> |
energySet
|
Constructor Summary | |
---|---|
MTBSet_SnakeEnergyDerivable()
Default contructor for empty set. |
|
MTBSet_SnakeEnergyDerivable(Vector<MTBSnakeEnergyDerivable> es)
Constructor for a given vector of energies. |
|
MTBSet_SnakeEnergyDerivable(Vector<MTBSnakeEnergyDerivable> es,
Vector<Double> ws)
Constructor with energies and weights. |
Method Summary | |
---|---|
void |
addEnergy(MTBSnakeEnergyDerivable e)
Append another energy to the list with default weight 1.0. |
void |
addEnergy(MTBSnakeEnergyDerivable e,
double w)
Append another energy to the list. |
MTBSnakeEnergyDerivable |
getEnergy(int i)
Returns element i of the energy list. |
Vector<MTBSnakeEnergyDerivable> |
getEnergyList()
|
Vector<MTBActiveContourEnergy> |
getGenericEnergyList()
Returns the list of energies. |
Double |
getWeight(int i)
Returns element i of the weight list. |
Vector<Double> |
getWeights()
Returns the list of weights. |
void |
setEnergyList(Vector<MTBActiveContourEnergy> es)
Specify a new set of energies, all weights are reset to 1.0. |
void |
setWeights(Vector<Double> ws)
Specify new weights. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MTBSetWeightedEnergy<MTBSnakeEnergyDerivable> energySet
Constructor Detail |
---|
public MTBSet_SnakeEnergyDerivable()
public MTBSet_SnakeEnergyDerivable(Vector<MTBSnakeEnergyDerivable> es)
es
- Vector with energies.public MTBSet_SnakeEnergyDerivable(Vector<MTBSnakeEnergyDerivable> es, Vector<Double> ws) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Both vectors must have the same size, otherwise an exception is thrown.
es
- Vector of energies.ws
- Vector of weights.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public void setEnergyList(Vector<MTBActiveContourEnergy> es)
setEnergyList
in interface MTBSet_ActiveContourEnergy
es
- New vector of energies.public void setWeights(Vector<Double> ws)
Note that it is assumed that the size of the weight vector matches the size of the current energy set.
setWeights
in interface MTBSet_ActiveContourEnergy
ws
- List of energy weights.public Vector<MTBActiveContourEnergy> getGenericEnergyList()
getGenericEnergyList
in interface MTBSet_ActiveContourEnergy
public Vector<MTBSnakeEnergyDerivable> getEnergyList()
public MTBSnakeEnergyDerivable getEnergy(int i)
getEnergy
in interface MTBSet_ActiveContourEnergy
i
- Index of energy to be returned.
public Vector<Double> getWeights()
getWeights
in interface MTBSet_ActiveContourEnergy
public Double getWeight(int i)
getWeight
in interface MTBSet_ActiveContourEnergy
i
- Index of requested weight.
public void addEnergy(MTBSnakeEnergyDerivable e, double w)
e
- New energy.w
- Weight for the energy.public void addEnergy(MTBSnakeEnergyDerivable e)
e
- New energy to be appended.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |