plugins.big.bigsnake.core
Class Settings

java.lang.Object
  extended by plugins.big.bigsnake.core.Settings

public class Settings
extends java.lang.Object

Offers global parameters (settings) and functions used by the plug-in. Settings makes use of the Singleton design pattern: There is at most one instance present, which can only be accessed through getInstance().

Version:
May 24, 2015
Author:
Ricard Delgado-Gonzalo (ricard.delgado@gmail.com), Daniel Schmitter (daniel.schmitter@epfl.ch)

Field Summary
static double ALPHA_DEFAULT
          Default energy tradeoff factor.
static double BETA_DEFAULT
          Default prior-shape energy tradeoff factor.
static boolean DEBUG
          Set to true to enable DEBUG mode
static ESnakeEnergyType ENERGY_TYPE_DEFAULT
          Default value of the energy function of the snake.
static boolean IMMORTAL_DEFAULT
          Default value of the immortal flag.
static int M_DEFAULT
          Default number of spline vector coefficients.
static int MAX_LIFE_DEFAULT
          Default maximum number of iterations allowed when the snake is not immortal.
static ESnakePriorShapeType PRIOR_SHAPE_DEFAULT
          Default value of the prior-shape information.
static ShapeSpaceType SHAPE_SPACE_DEFAULT
          Default value of shape space information.
static ESnakeTargetType TARGET_TYPE_DEFAULT
          Default value of the type of features to detect (bright or dark).
 
Constructor Summary
Settings()
           
 
Method Summary
 java.lang.String getAppName()
          Returns the name of the plug-in.
 java.lang.String getAppVersion()
          Returns the version of the plug-in.
 java.lang.String getIcyRequiredVersion()
          Returns the minimum version of Icy in which the plug-in works properly.
static Settings getInstance()
          Get Settings instance
 void setWindowIcon(icy.gui.frame.IcyFrame icyFrame)
          Set the window icon.
 void setWindowIcon(javax.swing.JDialog dialog)
          Set the window icon.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TARGET_TYPE_DEFAULT

public static final ESnakeTargetType TARGET_TYPE_DEFAULT
Default value of the type of features to detect (bright or dark).


ENERGY_TYPE_DEFAULT

public static final ESnakeEnergyType ENERGY_TYPE_DEFAULT
Default value of the energy function of the snake.


PRIOR_SHAPE_DEFAULT

public static final ESnakePriorShapeType PRIOR_SHAPE_DEFAULT
Default value of the prior-shape information.


SHAPE_SPACE_DEFAULT

public static final ShapeSpaceType SHAPE_SPACE_DEFAULT
Default value of shape space information.


MAX_LIFE_DEFAULT

public static final int MAX_LIFE_DEFAULT
Default maximum number of iterations allowed when the snake is not immortal.

See Also:
Constant Field Values

M_DEFAULT

public static final int M_DEFAULT
Default number of spline vector coefficients.

See Also:
Constant Field Values

ALPHA_DEFAULT

public static final double ALPHA_DEFAULT
Default energy tradeoff factor.

See Also:
Constant Field Values

BETA_DEFAULT

public static final double BETA_DEFAULT
Default prior-shape energy tradeoff factor.

See Also:
Constant Field Values

IMMORTAL_DEFAULT

public static final boolean IMMORTAL_DEFAULT
Default value of the immortal flag. If true indicates that the snake will keep iterating till the optimizer decides so.

See Also:
Constant Field Values

DEBUG

public static final boolean DEBUG
Set to true to enable DEBUG mode

See Also:
Constant Field Values
Constructor Detail

Settings

public Settings()
Method Detail

getInstance

public static Settings getInstance()
Get Settings instance


setWindowIcon

public void setWindowIcon(javax.swing.JDialog dialog)
Set the window icon.


setWindowIcon

public void setWindowIcon(icy.gui.frame.IcyFrame icyFrame)
Set the window icon.


getAppName

public java.lang.String getAppName()
Returns the name of the plug-in.


getAppVersion

public java.lang.String getAppVersion()
Returns the version of the plug-in.


getIcyRequiredVersion

public java.lang.String getIcyRequiredVersion()
Returns the minimum version of Icy in which the plug-in works properly.