io.loader.load3D
Class Index2Coordinates

java.lang.Object
  extended by io.loader.load3D.Index2Coordinates

public class Index2Coordinates
extends java.lang.Object

As the voxels in the input data are not always square, the index in the 3D cube has to be used to calculate the real coordinates based on the voxels' dimensions.


Constructor Summary
Index2Coordinates()
           
 
Method Summary
static Coordinates3D createCoordinates(int xindex, int yindex, int zindex, double widthDim, double heightDim, double depthDim)
          As the voxels are not square, we have to calculate the real coordinates for each voxel here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Index2Coordinates

public Index2Coordinates()
Method Detail

createCoordinates

public static Coordinates3D createCoordinates(int xindex,
                                              int yindex,
                                              int zindex,
                                              double widthDim,
                                              double heightDim,
                                              double depthDim)
As the voxels are not square, we have to calculate the real coordinates for each voxel here.

Parameters:
xindex - the x index in the 3D volume
yindex - the y index in the 3D volume
zindex - the z index in the 3D volume
Returns:
the real coordinates