@ALDParametrizedClass public class MTBSet_LevelEnergyDerivable extends Object implements MTBSet_ActiveContourEnergy
Objects of this class contain a set of derivable level set energies to be used in image segmentation by level sets. With each energy an individual weight is associated which allows to freely combine various energies depending on the application at hand. By 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 the command line user interfaces.
| Modifier and Type | Field and Description |
|---|---|
protected MTBSetWeightedEnergy<MTBLevelsetEnergyDerivable> |
energySet
Set of energies.
|
| Constructor and Description |
|---|
MTBSet_LevelEnergyDerivable()
Default contructor for empty set.
|
MTBSet_LevelEnergyDerivable(Vector<MTBLevelsetEnergyDerivable> es)
Constructor for a given vector of energies.
|
MTBSet_LevelEnergyDerivable(Vector<MTBLevelsetEnergyDerivable> es,
Vector<Double> ws)
Constructor with energies and weights.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEnergy(MTBLevelsetEnergyDerivable e)
Append another energy to the list with default weight 1.0.
|
void |
addEnergy(MTBLevelsetEnergyDerivable e,
double w)
Append another energy to the list.
|
MTBLevelsetEnergyDerivable |
getEnergy(int i)
Returns element i of the energy list.
|
Vector<MTBLevelsetEnergyDerivable> |
getEnergyList()
Returns the list of level set energies.
|
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() |
protected MTBSetWeightedEnergy<MTBLevelsetEnergyDerivable> energySet
public MTBSet_LevelEnergyDerivable()
public MTBSet_LevelEnergyDerivable(Vector<MTBLevelsetEnergyDerivable> es)
es - Vector with energies.public MTBSet_LevelEnergyDerivable(Vector<MTBLevelsetEnergyDerivable> 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.ALDOperatorExceptionpublic void setEnergyList(Vector<MTBActiveContourEnergy> es)
setEnergyList in interface MTBSet_ActiveContourEnergyes - 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_ActiveContourEnergyws - List of energy weights.public Vector<MTBActiveContourEnergy> getGenericEnergyList()
getGenericEnergyList in interface MTBSet_ActiveContourEnergypublic Vector<MTBLevelsetEnergyDerivable> getEnergyList()
public MTBLevelsetEnergyDerivable getEnergy(int i)
getEnergy in interface MTBSet_ActiveContourEnergyi - Index of energy to be returned.public Vector<Double> getWeights()
getWeights in interface MTBSet_ActiveContourEnergypublic Double getWeight(int i)
getWeight in interface MTBSet_ActiveContourEnergyi - Index of requested weight.public void addEnergy(MTBLevelsetEnergyDerivable e, double w)
e - New energy.w - Weight for the energy.public void addEnergy(MTBLevelsetEnergyDerivable e)
e - New energy to be appended.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.