public class FlyLegSnake
extends java.lang.Object
implements plugins.big.bigsnakeutils.icy.snake2D.Snake2D
| Constructor and Description |
|---|
FlyLegSnake(int M,
ImageLUTContainer imageLUTs,
java.awt.geom.Point2D[] points,
boolean dark)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
curvilinParamEnergy(double value,
org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction[] urf,
double meanValue)
Term penalizing non equally spaced nodes.
|
double |
energy()
The purpose of this method is to compute the energy of the snake.
|
java.awt.geom.Point2D.Double |
getCentroid() |
java.awt.geom.Point2D.Double[] |
getEnergyGradient()
The purpose of this method is to compute the gradient of the snake energy
with respect to the snake-defining nodes.
|
plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode[] |
getNodes()
This method provides an accessor to the snake-defining nodes.
|
int |
getNumNodes() |
plugins.big.bigsnakeutils.icy.snake2D.Snake2DScale[] |
getScales()
The purpose of this method is to determine what to draw on screen, given
the current configuration of nodes.
|
void |
initialize(boolean initShape) |
boolean |
isAlive()
The purpose of this method is to monitor the status of the snake.
|
boolean |
isCanceledByUser()
If true, indicates that the user chose to interactively abort the
processing of the snake.
|
boolean |
isInitialized() |
double |
pixelLength() |
void |
resample(int newM) |
void |
reviveSnake()
Sets the status of the snake to alive, and restores the maximum number
iterations to the original one.
|
void |
saveToXML(org.w3c.dom.Element node) |
void |
setNodes(plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode[] node)
This method provides a mutator to the snake-defining nodes.
|
public FlyLegSnake(int M,
ImageLUTContainer imageLUTs,
java.awt.geom.Point2D[] points,
boolean dark)
public double pixelLength()
public double energy()
energy in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic double curvilinParamEnergy(double value,
org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction[] urf,
double meanValue)
public java.awt.geom.Point2D.Double[] getEnergyGradient()
getEnergyGradient in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic void reviveSnake()
reviveSnake in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode[] getNodes()
getNodes in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic plugins.big.bigsnakeutils.icy.snake2D.Snake2DScale[] getScales()
getScales in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic boolean isAlive()
isAlive in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic boolean isCanceledByUser()
public void setNodes(plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode[] node)
setNodes in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic void resample(int newM)
public int getNumNodes()
getNumNodes in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic java.awt.geom.Point2D.Double getCentroid()
getCentroid in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic boolean isInitialized()
isInitialized in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic void saveToXML(org.w3c.dom.Element node)
saveToXML in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2Dpublic void initialize(boolean initShape)
initialize in interface plugins.big.bigsnakeutils.icy.snake2D.Snake2D