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

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

public class MeanCurvatureForce2D
extends ActiveContourForce2D

The Class MeanCurvatureForce2D moves the level set according to mean curvature. Mean curvature is defined as the divergence of the level set normal. For numerical stability, the magnitude of the Mean curvature is bounded from above.


Field Summary
protected  double maxCurvatureForce
          The max curvature force.
 
Fields inherited from class edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
cols, gridPoints, rows, weight
 
Constructor Summary
MeanCurvatureForce2D()
           
 
Method Summary
 double evaluate(int i, int j)
          Evaluate the force at a particular grid point position.
 double getMaxCurvatureForce()
          Gets the max curvature force.
 void setMaxCurvatureForce(double maxCurvatureForce)
          Sets the max curvature force.
 
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
 

Field Detail

maxCurvatureForce

protected double maxCurvatureForce
The max curvature force.

Constructor Detail

MeanCurvatureForce2D

public MeanCurvatureForce2D()
Method Detail

getMaxCurvatureForce

public double getMaxCurvatureForce()
Gets the max curvature force.

Returns:
the max curvature force

setMaxCurvatureForce

public void setMaxCurvatureForce(double maxCurvatureForce)
Sets the max curvature force.

Parameters:
maxCurvatureForce - the new max curvature force

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)