edu.jhu.cs.cisst.algorithms.segmentation.gac
Class ActiveContourForce2D

java.lang.Object
  extended by edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
Direct Known Subclasses:
AdvectionForce2D, GaussianCurvatureForce2D, MeanCurvatureForce2D, PressureForce2D

public abstract class ActiveContourForce2D
extends java.lang.Object

The Class ActiveContourForce2D is an abstract class to represent level set forces.


Field Summary
protected  int cols
          The columns.
protected  GridPoint2D[][] gridPoints
          The grid points.
protected  int rows
          The columns.
protected  double weight
          The weight.
 
Constructor Summary
ActiveContourForce2D()
          Instantiates a new active contour force.
ActiveContourForce2D(GridPoint2D[][] gridPoints)
          Instantiates a new active contour force.
ActiveContourForce2D(GridPoint2D[][] gridPoints, double weight)
          Instantiates a new active contour force.
 
Method Summary
abstract  double evaluate(int x, int y)
          Evaluate the force at a particular grid point position.
 GridPoint2D getGridPoint(int i, int j)
          Gets the grid point.
 double getWeight()
          Gets the weight.
 void setGridPoints(GridPoint2D[][] gridPoints)
          Sets the grid points.
 void setWeight(double weight)
          Sets the weight.
 void update()
          Update the force periodically while solving the PDE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gridPoints

protected GridPoint2D[][] gridPoints
The grid points.


rows

protected int rows
The columns.


cols

protected int cols
The columns.


weight

protected double weight
The weight.

Constructor Detail

ActiveContourForce2D

public ActiveContourForce2D(GridPoint2D[][] gridPoints,
                            double weight)
Instantiates a new active contour force.

Parameters:
gridPoints - the grid points
weight - the weight

ActiveContourForce2D

public ActiveContourForce2D(GridPoint2D[][] gridPoints)
Instantiates a new active contour force.

Parameters:
gridPoints - the grid points

ActiveContourForce2D

public ActiveContourForce2D()
Instantiates a new active contour force.

Method Detail

setGridPoints

public void setGridPoints(GridPoint2D[][] gridPoints)
Sets the grid points.

Parameters:
gridPoints - the new grid points

getGridPoint

public GridPoint2D getGridPoint(int i,
                                int j)
Gets the grid point.

Parameters:
i - the i
j - the j
Returns:
the grid point

getWeight

public double getWeight()
Gets the weight.

Returns:
the weight

setWeight

public void setWeight(double weight)
Sets the weight.

Parameters:
weight - the new weight

evaluate

public abstract double evaluate(int x,
                                int y)
Evaluate the force at a particular grid point position.

Parameters:
x - the x
y - the y
Returns:
the double

update

public void update()
Update the force periodically while solving the PDE.