|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ALDParametrizedClass public interface MTBSnakeEnergyComputable
Super class for all energies to be used with greedy snakes in MiToBo.
Method Summary | |
---|---|
double |
calcEnergy(SnakeOptimizerSingle o)
Calculates the energy of the current snake. |
double |
getScaleFactor()
Get scaling factor. |
boolean |
initEnergy(SnakeOptimizerSingle o)
Init routine which is called once before the energy is actually used. |
boolean |
requiresCounterClockwiseContourSorting()
Ask energy if contour points need to sorted counter-clockwise. |
boolean |
requiresOverlapMask()
Ask energy if an overlap mask for all snakes jointly optimized is required. |
void |
setScaleFactor(double s)
Set the scaling factor. |
String |
toString()
Get an identifier string for the energy object. |
void |
updateStatus(SnakeOptimizerSingle o)
Update internal state of energy object prior to querying derivatives and so on. |
Method Detail |
---|
boolean initEnergy(SnakeOptimizerSingle o) throws MTBSnakeException
In this routine global parameter settings can be handled or other initialization stuff be done. The SnakeOptimizer will call this routine once before the actual use of the energy. If no stuff needs to be done in advance the routine should at least return true.
o
- Calling snake optimizer.
MTBSnakeException
void updateStatus(SnakeOptimizerSingle o) throws MTBSnakeException
MTBSnakeException
double calcEnergy(SnakeOptimizerSingle o)
o
- Calling snake optimizer.
void setScaleFactor(double s)
s
- new scaling factor.double getScaleFactor()
boolean requiresCounterClockwiseContourSorting()
boolean requiresOverlapMask()
String toString()
When meta parameters are saved to a file, configuration objects need to be converted to strings. Consequently, each snake energy should be associated with a unique and descriptive string for later reference.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |