public class BallStickTractographyImage extends PD_TractographyImage
Constructor and Description |
---|
BallStickTractographyImage(Vector3D[][][][] vecs,
int[][][] npds,
double[] voxelDims)
Constructs an image directly from an array of vectors.
|
BallStickTractographyImage(VoxelOrderDataSource dataSource,
int[] dataDims,
double[] voxelDims)
Constructs an image from the data sources.
|
Modifier and Type | Method and Description |
---|---|
static BallStickTractographyImage |
getBallStickTractographyImage(java.lang.String inputFile,
java.lang.String dataType,
double[][][] anisMap,
double anisThresh,
int[] dataDims,
double[] voxelDims)
Gets an image from the data file.
|
getPD_TractographyImage
computeIsotropicMask, computeIsotropicMask, getDataDims, getIsotropicMask, getPDs, getPDs, getVoxelDims, numberOfPDs, xDataDim, xVoxelDim, yDataDim, yVoxelDim, zDataDim, zVoxelDim
public BallStickTractographyImage(Vector3D[][][][] vecs, int[][][] npds, double[] voxelDims)
vectors
- The array of vectors (stick orientations).npds
- The array of numbers of directionsdataDims
- array of data dimensions {xDataDim,
yDataDim, zDataDim}.voxelDims
- array of voxel dimensions (in mm) {xVoxelDim,
yVoxelDim, zVoxelDim}.public BallStickTractographyImage(VoxelOrderDataSource dataSource, int[] dataDims, double[] voxelDims)
dataSource
- sources for the model parameters.dataDims
- array of data dimensions {xDataDim, yDataDim, zDataDim}.voxelDims
- array of voxel dimensions (in mm) {xVoxelDim, yVoxelDim, zVoxelDim}.public static final BallStickTractographyImage getBallStickTractographyImage(java.lang.String inputFile, java.lang.String dataType, double[][][] anisMap, double anisThresh, int[] dataDims, double[] voxelDims)
anisMapFile
is not null
, it is read and used
for isotropic masking.inputFile
- the data file.dataType
- the data type of the data file and anisMapFile
.maxPDs
- the maximum number of PDs in a voxel.anisMap
- the anisotropy map, which is used to create the tract mask.
May be null
if not required.anisThresh
- threshold for the anisotropy in the computation of the tract mask.dataDims
- array of data dimensions {xDataDim, yDataDim, zDataDim}.voxelDims
- array of voxel dimensions (in mm) {xVoxelDim, yVoxelDim, zVoxelDim}.