@ALDParametrizedClass public interface MTBSnakeEnergyComputable extends MTBActiveContourEnergy
Modifier and Type | Method and Description |
---|---|
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.
|
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.
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.