snakeprogram
Class TwoDCurveDeformation
java.lang.Object
snakeprogram.TwoDDeformation
snakeprogram.TwoDCurveDeformation
public class TwoDCurveDeformation
- extends TwoDDeformation
This is an open snake with a stretching for a both ends.
Method Summary |
void |
addSnakePoints(double msl)
Interpolates the points that are too far apart, and removes
points that are too close together. |
void |
energyWithGradient(double[] Vx,
double[] Vy)
Modifies Vx,Vy in place to find the forces it uses the image term and
the 'stretching' term. |
void |
initializeMatrix()
Initializes the double[][] array according to curve type |
Methods inherited from class snakeprogram.TwoDDeformation |
deformSnake, interpolate, interpolate, pointDistance, setAlpha, setBackInt, setBeta, setForInt, setGamma, setStretch, setWeight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwoDCurveDeformation
public TwoDCurveDeformation(java.util.ArrayList<double[]> vertex_X,
ImageEnergy ie)
initializeMatrix
public void initializeMatrix()
- Description copied from class:
TwoDDeformation
- Initializes the double[][] array according to curve type
- Specified by:
initializeMatrix
in class TwoDDeformation
addSnakePoints
public void addSnakePoints(double msl)
throws java.lang.IllegalAccessException
- Interpolates the points that are too far apart, and removes
points that are too close together. Includes the connection
between the two end points
- Specified by:
addSnakePoints
in class TwoDDeformation
- Throws:
java.lang.IllegalAccessException
energyWithGradient
public void energyWithGradient(double[] Vx,
double[] Vy)
- Modifies Vx,Vy in place to find the forces it uses the image term and
the 'stretching' term.
- Specified by:
energyWithGradient
in class TwoDDeformation