geometry
Class Index2D

java.lang.Object
  extended by geometry.Index2D
All Implemented Interfaces:
Index
Direct Known Subclasses:
Index3D

public class Index2D
extends java.lang.Object
implements Index

A pixel's index in the 2D array.

The pixels might be no unit pixels. As a result, coordinates and index in the original image might differ from each other. Thus, both coordinates (for example used for distance calculations) and index (used for example for distance map lookups) are needed and stored with each skeleton node


Field Summary
private  int xindex
          the index in x dimension
private  int yindex
          the index in y dimension
 
Constructor Summary
Index2D(int xindex, int yindex)
          Setting x and y index.
 
Method Summary
 int getX()
          get x index
 int getY()
          get y index
 int getZ()
          get z index
 void setX(int x)
          set x index
 void setY(int y)
          set y index
 void setZ(int z)
          set z index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xindex

private int xindex
the index in x dimension


yindex

private int yindex
the index in y dimension

Constructor Detail

Index2D

public Index2D(int xindex,
               int yindex)
Setting x and y index.

Parameters:
xindex - the index in width dimension
yindex - the index in height dimension
Method Detail

getX

public int getX()
Description copied from interface: Index
get x index

Specified by:
getX in interface Index
Returns:
x

setX

public void setX(int x)
Description copied from interface: Index
set x index

Specified by:
setX in interface Index

getY

public int getY()
Description copied from interface: Index
get y index

Specified by:
getY in interface Index
Returns:
y

setY

public void setY(int y)
Description copied from interface: Index
set y index

Specified by:
setY in interface Index

getZ

public int getZ()
Description copied from interface: Index
get z index

Specified by:
getZ in interface Index
Returns:
z

setZ

public void setZ(int z)
Description copied from interface: Index
set z index

Specified by:
setZ in interface Index