public class DTIField extends java.lang.Object implements VolumeImage, Clonable
Constructor and Description |
---|
DTIField(int ncols,
int nrows,
int nslices,
DTIVoxel[] voxels,
Vector3d voxelSpacing,
AffineTransform3d voxelTransform) |
Modifier and Type | Method and Description |
---|---|
DTIField |
clone() |
int |
getNumChannels()
Channels correspond to the 6 diffusion tensor entries d00, d11, d22, d01, d02, d12
|
int |
getNumCols()
Number of columns in the image, corresponds to image x-axis
|
int |
getNumRows()
Number of rows in the image, corresponds to image y-axis
|
int |
getNumSlices()
Number of slices in the image, corresponds to image z-axis
|
double |
getValue(int channel,
int col,
int row,
int slice)
Channels correspond to the 6 diffusion tensor entries d00, d11, d22, d01, d02, d12
|
DTIVoxel |
getVoxel(int c,
int r,
int s) |
Vector3d |
getVoxelSpacing() |
AffineTransform3d |
getVoxelTransform()
Transform that converts voxels [col, row, slice] to world-coordinates of the center of the voxel
|
public DTIField(int ncols, int nrows, int nslices, DTIVoxel[] voxels, Vector3d voxelSpacing, AffineTransform3d voxelTransform)
public int getNumCols()
VolumeImage
getNumCols
in interface VolumeImage
public int getNumRows()
VolumeImage
getNumRows
in interface VolumeImage
public int getNumSlices()
VolumeImage
getNumSlices
in interface VolumeImage
public DTIVoxel getVoxel(int c, int r, int s)
public AffineTransform3d getVoxelTransform()
VolumeImage
getVoxelTransform
in interface VolumeImage
public Vector3d getVoxelSpacing()
public DTIField clone()
public double getValue(int channel, int col, int row, int slice)
getValue
in interface VolumeImage
channel
- channel numbercol
- column indexrow
- row indexslice
- slice indexpublic int getNumChannels()
getNumChannels
in interface VolumeImage