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

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

public class PressureForce2D
extends ActiveContourForce2D

The Class PressureForce2D moves the level set outwards in regions of positive pressure and inwards in regions of negative pressure.


Field Summary
protected  float[][] pressureForce
          The pressure force.
 
Fields inherited from class edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
cols, gridPoints, rows, weight
 
Constructor Summary
PressureForce2D()
           
PressureForce2D(float[][] pressureForce)
          Instantiates a new pressure force.
 
Method Summary
 double evaluate(int i, int j)
          Evaluate the force at a particular grid point position.
 void rescale(double offset)
          Rescale the pressure field so that the min and max are normalized to one and zero pressure is at the specified offset.
 
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

pressureForce

protected float[][] pressureForce
The pressure force.

Constructor Detail

PressureForce2D

public PressureForce2D()

PressureForce2D

public PressureForce2D(float[][] pressureForce)
Instantiates a new pressure force.

Parameters:
pressureForce - the pressure force
Method Detail

rescale

public void rescale(double offset)
Rescale the pressure field so that the min and max are normalized to one and zero pressure is at the specified offset.

Parameters:
offset - the offset pressure

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:
#evaluate(int, int)