@ALDParametrizedClass public interface MTBSnakeEnergyDerivable extends MTBActiveContourEnergyDerivable
Modifier and Type | Field and Description |
---|---|
static double[] |
targetEnergyRange
Target interval boundaries of energy.
|
Modifier and Type | Method and Description |
---|---|
Jama.Matrix |
getDerivative_MatrixPart(SnakeOptimizerSingleVarCalc o)
Returns the linear matrix part of this energy for snake optimization.
|
Jama.Matrix |
getDerivative_VectorPart(SnakeOptimizerSingleVarCalc o)
Returns the vector part of this energy for snake optimization.
|
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 usaging it.
|
static final double[] targetEnergyRange
targetEnergyRange[0] -> left boundary targetEnergyRange[1] -> right boundary targetEnergyRange[2] -> interval width
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
Jama.Matrix getDerivative_MatrixPart(SnakeOptimizerSingleVarCalc o)
o
- Calling snake optimizer.Jama.Matrix getDerivative_VectorPart(SnakeOptimizerSingleVarCalc 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.