edu.jhu.cs.cisst.algorithms.segmentation.gac
Class PressureForce2D
java.lang.Object
edu.jhu.cs.cisst.algorithms.segmentation.gac.ActiveContourForce2D
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pressureForce
protected float[][] pressureForce
- The pressure force.
PressureForce2D
public PressureForce2D()
PressureForce2D
public PressureForce2D(float[][] pressureForce)
- Instantiates a new pressure force.
- Parameters:
pressureForce
- the pressure force
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 xj
- the y
- Returns:
- the double
- See Also:
#evaluate(int, int)