geometry
Class Index3D

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

public class Index3D
extends Index2D

A voxel's index in the 3D array.

The voxels might be no unit voxels. 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 zindex
          the index in depth dimension
 
Constructor Summary
Index3D(int xindex, int yindex, int zindex)
          Setting x, y, and z index.
 
Method Summary
 int getZ()
          get z index
 void setZ(int z)
          set z index
 
Methods inherited from class geometry.Index2D
getX, getY, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zindex

private int zindex
the index in depth dimension

Constructor Detail

Index3D

public Index3D(int xindex,
               int yindex,
               int zindex)
Setting x, y, and z index.

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

getZ

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

Specified by:
getZ in interface Index
Overrides:
getZ in class Index2D
Returns:
z

setZ

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

Specified by:
setZ in interface Index
Overrides:
setZ in class Index2D