de.unihalle.informatik.MiToBo.segmentation.snakes.energies
Interface MTBSnakeEnergyCoupled

All Superinterfaces:
MTBActiveContourEnergy
All Known Implementing Classes:
MTBSnakeEnergyCD_CVRegionFit, MTBSnakeEnergyCD_OverlapPenalty

@ALDParametrizedClass
public interface MTBSnakeEnergyCoupled
extends MTBActiveContourEnergy

Super class for energies working simultaneously on multiple snakes.

Author:
moeller

Method Summary
 boolean initEnergy(SnakeOptimizerCoupled 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 updateStatus(SnakeOptimizerCoupled o)
          Update internal state of energy object prior to querying derivatives and so on.
 

Method Detail

initEnergy

boolean initEnergy(SnakeOptimizerCoupled o)
                   throws MTBSnakeException
Init routine which is called once before the energy is actually used.

In this routine global parameter settings can be handled or other initialization stuff be done. Snake optimizers are supposed to call this routine once before they actual use of the energy. If no stuff needs to be done in advance the routine should at least return true.

Parameters:
o - Calling snake optimizer.
Returns:
true if init was successful
Throws:
MTBSnakeException

updateStatus

void updateStatus(SnakeOptimizerCoupled o)
                  throws MTBSnakeException
Update internal state of energy object prior to querying derivatives and so on.

Throws:
MTBSnakeException

requiresCounterClockwiseContourSorting

boolean requiresCounterClockwiseContourSorting()
Ask energy if contour points need to sorted counter-clockwise.

Returns:
If true, the energy expects a counter-clockwise sorting.

requiresOverlapMask

boolean requiresOverlapMask()
Ask energy if an overlap mask for all snakes jointly optimized is required.

Returns:
If true, the energy expects an overlap mask to be available.


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.