public class ESnakeParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
ESnakeParameters(ESnakeTargetType detectType,
int M,
ESnakeEnergyType energyType,
double alpha,
ESnakePriorShapeType priorShapeType,
double beta,
int maxLife,
boolean immortal)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getAlpha() |
double |
getBeta() |
ESnakeTargetType |
getDetectType() |
ESnakeEnergyType |
getEnergyType() |
int |
getM() |
int |
getMaxLife() |
ESnakePriorShapeType |
getPriorShapeType() |
boolean |
isImmortal() |
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) |
java.lang.String |
toString() |
public static final java.lang.String ID_DETECT_TYPE
public static final java.lang.String ID_M
public static final java.lang.String ID_ENERGY_TYPE
public static final java.lang.String ID_ALPHA
public static final java.lang.String ID_PRIOR_SHAPE_TYPE
public static final java.lang.String ID_BETA
public static final java.lang.String ID_MAX_LIFE
public static final java.lang.String ID_IMMORTAL
public ESnakeParameters(ESnakeTargetType detectType, int M, ESnakeEnergyType energyType, double alpha, ESnakePriorShapeType priorShapeType, double beta, int maxLife, boolean immortal)
public java.lang.String toString()
toString
in class java.lang.Object
public void saveToXML(org.w3c.dom.Element node)
public ESnakeTargetType getDetectType()
public void setDetectType(ESnakeTargetType detectType)
public int getM()
public void setM(int M)
public ESnakeEnergyType getEnergyType()
public void setEnergyType(ESnakeEnergyType energyType)
public double getAlpha()
public void setAlpha(double alpha)
public ESnakePriorShapeType getPriorShapeType()
public void setPriorShapeType(ESnakePriorShapeType priorShapeType)
public double getBeta()
public void setBeta(double beta)
public int getMaxLife()
public void setMaxLife(int maxLife)
public boolean isImmortal()
public void setImmortal(boolean immortal)