plugins.big.bigsnake3d.snake
Class SphereSnakeParameters

java.lang.Object
  extended by plugins.big.bigsnake3d.snake.SphereSnakeParameters

public class SphereSnakeParameters
extends java.lang.Object

Class that wraps the parameters of the E-Snake.

Version:
May 3, 2014
Author:
Ricard Delgado-Gonzalo (ricard.delgado@gmail.com)

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_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_GAMMA
          Label of the XML tag containing the surface stiffness.
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.
 
Constructor Summary
SphereSnakeParameters(int maxLife, int M, double alpha, double gamma, boolean immortal, SphereSnakeTargetType detectType, SphereSnakeEnergyType energyType)
          Default constructor.
 
Method Summary
 double getAlpha()
           
 SphereSnakeTargetType getDetectType()
           
 SphereSnakeEnergyType getEnergyType()
           
 double getGamma()
           
 int getM()
           
 int getMaxLife()
           
 boolean isImmortal()
           
 void saveToXML(org.w3c.dom.Element node)
           
 void setAlpha(double alpha)
           
 void setDetectType(SphereSnakeTargetType detectType)
           
 void setEnergyType(SphereSnakeEnergyType energyType)
           
 void setGamma(double gamma)
           
 void setImmortal(boolean immortal)
           
 void setM(int M)
           
 void setMaxLife(int maxLife)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

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_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_GAMMA

public static final java.lang.String ID_GAMMA
Label of the XML tag containing the surface stiffness.

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_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
Constructor Detail

SphereSnakeParameters

public SphereSnakeParameters(int maxLife,
                             int M,
                             double alpha,
                             double gamma,
                             boolean immortal,
                             SphereSnakeTargetType detectType,
                             SphereSnakeEnergyType energyType)
Default constructor.

Method Detail

toString

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

saveToXML

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

getAlpha

public double getAlpha()

setAlpha

public void setAlpha(double alpha)

getGamma

public double getGamma()

setGamma

public void setGamma(double gamma)

isImmortal

public boolean isImmortal()

setImmortal

public void setImmortal(boolean immortal)

getM

public int getM()

setM

public void setM(int M)

getDetectType

public SphereSnakeTargetType getDetectType()

setDetectType

public void setDetectType(SphereSnakeTargetType detectType)

getEnergyType

public SphereSnakeEnergyType getEnergyType()

setEnergyType

public void setEnergyType(SphereSnakeEnergyType energyType)

getMaxLife

public int getMaxLife()

setMaxLife

public void setMaxLife(int maxLife)