public class TractSource
extends java.lang.Object
Constructor and Description |
---|
TractSource(java.lang.String filename,
java.lang.String tractType,
double[] voxelDims)
Construct a source from the file or stdin.
|
TractSource(java.lang.String filename,
java.lang.String tractType,
double xVoxelDim,
double yVoxelDim,
double zVoxelDim) |
public TractSource(java.lang.String filename, java.lang.String tractType, double[] voxelDims)
filename
- name of the file. If null
, tracts are read from stdin.tractType
- either "raw" or "voxels".voxelDims
- only used if input is "voxels"; in which case the returned tracts have
a point at the centre of each voxel, plus two extra ones to determine the exact tangent at
the seed point.VoxelList.toTract()
public TractSource(java.lang.String filename, java.lang.String tractType, double xVoxelDim, double yVoxelDim, double zVoxelDim)
public Tract nextTract()
LoggedException
- if more tracts are read than the file contains.public boolean more()