plugins.big.bigsnake.snake
Class ESnakeParameters

java.lang.Object
  extended by plugins.big.bigsnake.snake.ESnakeParameters

public class ESnakeParameters
extends java.lang.Object

Class that wraps the parameters of the E-Snake.

Version:
October 27, 2014
Author:
Ricard Delgado-Gonzalo (ricard.delgado@gmail.com), Daniel Schmitter (daniel.schmitter@epfl.ch)

Field Summary
static java.lang.String ID_ALPHA
          Label of the XML tag containing the energy trade-off between the contour energy and the region energy.
static java.lang.String ID_BETA
          Label of the XML tag containing the energy weight of the prior shape energy.
static java.lang.String ID_DETECT_TYPE
          Label of the XML tag informing about the brightness of the target to segment (brighter or darker than the background).
static java.lang.String ID_ENERGY_TYPE
          Label of the XML tag informing about the type of energy the snake uses (contour, region or mixture).
static java.lang.String ID_IMMORTAL
          Label of the XML tag informing if the number of iterations of the snake is limited or not.
static java.lang.String ID_M
          Label of the XML tag containing the number of control points of the snake.
static java.lang.String ID_MAX_LIFE
          Label of the XML tag containing the maximum number of iterations.
static java.lang.String ID_PRIOR_SHAPE_TYPE
          Label of the XML tag informing about the type of prior shape that is used in the energy.
static java.lang.String ID_SHAPE_SPACE_TYPE
          Label of the XML tag informing about the type of shape space that is used in the energy.
 
Constructor Summary
ESnakeParameters()
          Default constructor.
ESnakeParameters(ESnakeTargetType detectType, int M, ESnakeEnergyType energyType, double alpha, ESnakePriorShapeType priorShapeType, ShapeSpaceType shapeSpaceType, double beta, int maxLife, boolean immortal)
          Constructor.
 
Method Summary
 double getAlpha()
           
 double getBeta()
           
 ESnakeTargetType getDetectType()
           
 ESnakeEnergyType getEnergyType()
           
 int getM()
           
 int getMaxLife()
           
 ESnakePriorShapeType getPriorShapeType()
           
 ShapeSpaceType getShapeSpaceType()
           
 boolean isImmortal()
           
 void loadFromToXML(org.w3c.dom.Node node)
           
 void saveToXML(org.w3c.dom.Element node)
           
 void setAlpha(double alpha)
           
 void setBeta(double beta)
           
 void setDetectType(ESnakeTargetType detectType)
           
 void setEnergyType(ESnakeEnergyType energyType)
           
 void setImmortal(boolean immortal)
           
 void setM(int M)
           
 void setMaxLife(int maxLife)
           
 void setPriorShapeType(ESnakePriorShapeType priorShapeType)
           
 void setShapeSpaceType(ShapeSpaceType shapeSpaceType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_DETECT_TYPE

public static final java.lang.String ID_DETECT_TYPE
Label of the XML tag informing about the brightness of the target to segment (brighter or darker than the background).

See Also:
Constant Field Values

ID_M

public static final java.lang.String ID_M
Label of the XML tag containing the number of control points of the snake.

See Also:
Constant Field Values

ID_ENERGY_TYPE

public static final java.lang.String ID_ENERGY_TYPE
Label of the XML tag informing about the type of energy the snake uses (contour, region or mixture).

See Also:
Constant Field Values

ID_ALPHA

public static final java.lang.String ID_ALPHA
Label of the XML tag containing the energy trade-off between the contour energy and the region energy.

See Also:
Constant Field Values

ID_PRIOR_SHAPE_TYPE

public static final java.lang.String ID_PRIOR_SHAPE_TYPE
Label of the XML tag informing about the type of prior shape that is used in the energy.

See Also:
Constant Field Values

ID_SHAPE_SPACE_TYPE

public static final java.lang.String ID_SHAPE_SPACE_TYPE
Label of the XML tag informing about the type of shape space that is used in the energy.

See Also:
Constant Field Values

ID_BETA

public static final java.lang.String ID_BETA
Label of the XML tag containing the energy weight of the prior shape energy.

See Also:
Constant Field Values

ID_MAX_LIFE

public static final java.lang.String ID_MAX_LIFE
Label of the XML tag containing the maximum number of iterations.

See Also:
Constant Field Values

ID_IMMORTAL

public static final java.lang.String ID_IMMORTAL
Label of the XML tag informing if the number of iterations of the snake is limited or not.

See Also:
Constant Field Values
Constructor Detail

ESnakeParameters

public ESnakeParameters()
Default constructor.


ESnakeParameters

public ESnakeParameters(ESnakeTargetType detectType,
                        int M,
                        ESnakeEnergyType energyType,
                        double alpha,
                        ESnakePriorShapeType priorShapeType,
                        ShapeSpaceType shapeSpaceType,
                        double beta,
                        int maxLife,
                        boolean immortal)
Constructor.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

loadFromToXML

public void loadFromToXML(org.w3c.dom.Node node)

saveToXML

public void saveToXML(org.w3c.dom.Element node)

getDetectType

public ESnakeTargetType getDetectType()

setDetectType

public void setDetectType(ESnakeTargetType detectType)

getM

public int getM()

setM

public void setM(int M)

getEnergyType

public ESnakeEnergyType getEnergyType()

setEnergyType

public void setEnergyType(ESnakeEnergyType energyType)

getAlpha

public double getAlpha()

setAlpha

public void setAlpha(double alpha)

getPriorShapeType

public ESnakePriorShapeType getPriorShapeType()

setPriorShapeType

public void setPriorShapeType(ESnakePriorShapeType priorShapeType)

getShapeSpaceType

public ShapeSpaceType getShapeSpaceType()

setShapeSpaceType

public void setShapeSpaceType(ShapeSpaceType shapeSpaceType)

getBeta

public double getBeta()

setBeta

public void setBeta(double beta)

getMaxLife

public int getMaxLife()

setMaxLife

public void setMaxLife(int maxLife)

isImmortal

public boolean isImmortal()

setImmortal

public void setImmortal(boolean immortal)