public class RepBS_DT_TractographyImage extends BS_DT_TractographyImage
Constructor and Description |
---|
RepBS_DT_TractographyImage(float[][][][][] data,
double[] voxelDims,
int[][][] vc,
ModelIndex[] indices,
DW_Scheme imPars,
java.util.Random r) |
Modifier and Type | Method and Description |
---|---|
static RepBS_DT_TractographyImage |
getBS_TractographyImage(java.lang.String[] inputFiles,
java.lang.String dataType,
DW_Scheme imPars,
ModelIndex[] indices,
int[][][] vc,
double[][][] anisMap,
double anisThresh,
int[] dataDims,
double[] voxelDims,
java.util.Random ran)
Gets an image from the data file.
|
getEigenvectors
getPDs
computeIsotropicMask, computeIsotropicMask, getDataDims, getIsotropicMask, getPDs, getVoxelDims, numberOfPDs, xDataDim, xVoxelDim, yDataDim, yVoxelDim, zDataDim, zVoxelDim
public RepBS_DT_TractographyImage(float[][][][][] data, double[] voxelDims, int[][][] vc, ModelIndex[] indices, DW_Scheme imPars, java.util.Random r)
data
- the raw bootstrap data, order [x][y][z][repeat][measurement].voxelDims
- array of voxel dimensions (in mm) {xVoxelDim, yVoxelDim, zVoxelDim}.vc
- the voxel classification.indices
- the inversion indices for the two-tensor and tensor reconstruction, in that order.imPars
- the imaging scheme for the data.r
- a source of random numbers. The java.util.Random class is not recommended, use
tools.MTRandom instead.ModelFit
public static final RepBS_DT_TractographyImage getBS_TractographyImage(java.lang.String[] inputFiles, java.lang.String dataType, DW_Scheme imPars, ModelIndex[] indices, int[][][] vc, double[][][] anisMap, double anisThresh, int[] dataDims, double[] voxelDims, java.util.Random ran)
anisMapFile
is not null
, it is read and used
for isotropic masking.inputFiles
- the data files.dataType
- the data type of the data file and anisMapFile
.imPars
- the imaging scheme for the data.inversionIndex
- the numerical index of the tensor inversion.vc
- the voxel classification for this image. If null
, each voxel is assumed to contain
one PD.anisMap
- the anisotropy map, which is used to create the isotropic 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}.ran
- a source of random numbers.