public class PICoTractographyImage extends TractographyImage
Constructor and Description |
---|
PICoTractographyImage(VoxelOrderDataSource dataSource,
int maxPDs,
PICoPDF pdf,
int[] dataDims,
double[] voxelDims,
java.util.Random ran)
Constructs an image from the data sources.
|
Modifier and Type | Method and Description |
---|---|
Vector3D[] |
getPDs(int i,
int j,
int k)
Gets a new sample from each PICo PDF in this voxel.
|
static PICoTractographyImage |
getPICoTractographyImage(java.lang.String inputFile,
java.lang.String dataType,
int maxPDs,
PICoPDF pdf,
double[][][] anisMap,
double anisThresh,
int[] dataDims,
double[] voxelDims,
java.util.Random ran)
Gets an image from the data file.
|
computeIsotropicMask, computeIsotropicMask, getDataDims, getIsotropicMask, getPDs, getVoxelDims, numberOfPDs, xDataDim, xVoxelDim, yDataDim, yVoxelDim, zDataDim, zVoxelDim
public PICoTractographyImage(VoxelOrderDataSource dataSource, int maxPDs, PICoPDF pdf, int[] dataDims, double[] voxelDims, java.util.Random ran)
dataSource
- sourcs for the data, in the format of the picopdfs program.maxPDs
- the maximum number of PDs in a voxel.pdf
- PICo PDF type.dataDims
- array of data dimensions {xDataDim, yDataDim, zDataDim}.voxelDims
- array of voxel dimensions (in mm) {xVoxelDim, yVoxelDim, zVoxelDim}.ran
- a source of random numbers.public Vector3D[] getPDs(int i, int j, int k)
getPDs
in class TractographyImage
public static final PICoTractographyImage getPICoTractographyImage(java.lang.String inputFile, java.lang.String dataType, int maxPDs, PICoPDF pdf, double[][][] anisMap, double anisThresh, int[] dataDims, double[] voxelDims, java.util.Random ran)
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.pdf
- PICo PDF type.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}.