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

java.lang.Object
  extended by edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
      extended by edu.jhu.cs.cisst.algorithms.segmentation.gac.AdvectionForce2D

public class AdvectionForce2D
extends ActiveContourForce2D

The Class AdvectionForce2D moves the zero level set in the direction of the force field.


Field Summary
 
Fields inherited from class edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
cols, gridPoints, rows, weight
 
Constructor Summary
AdvectionForce2D(float[][][] advectionForce)
          Instantiates a new advection force.
 
Method Summary
 double evaluate(int i, int j)
          Evaluate the force at a particular grid point position.
 
Methods inherited from class edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
getGridPoint, getWeight, setGridPoints, setWeight, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvectionForce2D

public AdvectionForce2D(float[][][] advectionForce)
Instantiates a new advection force.

Parameters:
advectionForce - the advection force
Method Detail

evaluate

public double evaluate(int i,
                       int j)
Description copied from class: ActiveContourForce2D
Evaluate the force at a particular grid point position.

Specified by:
evaluate in class ActiveContourForce2D
Parameters:
i - the x
j - the y
Returns:
the double
See Also:
ActiveContourForce2D.evaluate(int, int)