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

java.lang.Object
  extended by Point2i
      extended by edu.jhu.cs.cisst.algorithms.segmentation.gac.GridPoint2D
All Implemented Interfaces:
java.lang.Comparable<GridPoint2D>

public class GridPoint2D
extends Point2i
implements java.lang.Comparable<GridPoint2D>

The Class GridPoint2D stores information about a narrow band node.


Constructor Summary
GridPoint2D(int i, int j, int layer)
          Instantiates a new grid point.
GridPoint2D(int i, int j, int layer, float value)
          Instantiates a new grid point.
 
Method Summary
 int compareTo(GridPoint2D gpt)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

GridPoint2D

public GridPoint2D(int i,
                   int j,
                   int layer,
                   float value)
Instantiates a new grid point.

Parameters:
i - the row
j - the column
layer - the layer
value - the level set value

GridPoint2D

public GridPoint2D(int i,
                   int j,
                   int layer)
Instantiates a new grid point.

Parameters:
i - the row
j - the column
layer - the layer
Method Detail

compareTo

public int compareTo(GridPoint2D gpt)
See Also:
Comparable.compareTo(java.lang.Object)

toString

public java.lang.String toString()
See Also:
javax.vecmath.Tuple2i#toString()