snakeprogram
Class TwoDContourDeformation

java.lang.Object
  extended by snakeprogram.TwoDDeformation
      extended by snakeprogram.TwoDContourDeformation

public class TwoDContourDeformation
extends TwoDDeformation

This type of curve is attached at the two end points and forms a closed loop


Constructor Summary
TwoDContourDeformation(java.util.ArrayList<double[]> vertex_X, ImageEnergy ie)
           
 
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)
          Calculates only the image energy the closed contour does not have any other terms
 void initializeMatrix()
          This method intializes an array which will become the A matrix using the values of alpha, beta and gamma as well as the number of points in verticesX and verticesY
 
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
 

Constructor Detail

TwoDContourDeformation

public TwoDContourDeformation(java.util.ArrayList<double[]> vertex_X,
                              ImageEnergy ie)
Method Detail

initializeMatrix

public void initializeMatrix()
This method intializes an array which will become the A matrix using the values of alpha, beta and gamma as well as the number of points in verticesX and verticesY

Specified by:
initializeMatrix in class TwoDDeformation

energyWithGradient

public void energyWithGradient(double[] Vx,
                               double[] Vy)
Calculates only the image energy the closed contour does not have any other terms

Specified by:
energyWithGradient 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