public class BayesDiracTractographyImage extends TractographyImage
Constructor and Description |
---|
BayesDiracTractographyImage(float[][][][] data,
double[] voxelDims,
int[][][] numPDs,
DW_Scheme scheme,
DataModel model,
int pointSetInd,
java.util.Random ran)
Matlab constructor.
|
Modifier and Type | Method and Description |
---|---|
static BayesDiracTractographyImage |
getBayesDiracTractographyImage(java.lang.String inputFile,
java.lang.String dataType,
DW_Scheme scheme,
DataModel dataModel,
int[][][] numPDs,
double[][][] anisMap,
double anisThresh,
int[] dataDims,
double[] voxelDims,
int pointSetInd,
java.util.Random ran)
Gets an image from the data file.
|
Vector3D[] |
getPDs(int i,
int j,
int k) |
Vector3D[] |
getPDs(int i,
int j,
int k,
Vector3D fibreOrientation) |
void |
setCurvePriorGamma(double g)
Sets the curvature prior concentration to |v_i \dot v_{i-1}|^\gamma given the current
orientation v_i and the previous one v_{i-1}.
|
void |
setCurvePriorKappa(double k)
Sets the curvature prior concentration using a Watson distribution.
|
void |
setExternalPriors(PICoTractographyImage priorImage) |
computeIsotropicMask, computeIsotropicMask, getDataDims, getIsotropicMask, getVoxelDims, numberOfPDs, xDataDim, xVoxelDim, yDataDim, yVoxelDim, zDataDim, zVoxelDim
public BayesDiracTractographyImage(float[][][][] data, double[] voxelDims, int[][][] numPDs, DW_Scheme scheme, DataModel model, int pointSetInd, java.util.Random ran)
-
- voxelDims
- array of voxel dimensions (in mm) {xVoxelDim, yVoxelDim, zVoxelDim}.public Vector3D[] getPDs(int i, int j, int k)
getPDs
in class TractographyImage
public Vector3D[] getPDs(int i, int j, int k, Vector3D fibreOrientation)
getPDs
in class TractographyImage
public void setExternalPriors(PICoTractographyImage priorImage)
public static final BayesDiracTractographyImage getBayesDiracTractographyImage(java.lang.String inputFile, java.lang.String dataType, DW_Scheme scheme, DataModel dataModel, int[][][] numPDs, double[][][] anisMap, double anisThresh, int[] dataDims, double[] voxelDims, int pointSetInd, 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.numPDs
- array containing number of PDs in each 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}.public void setCurvePriorKappa(double k)
public void setCurvePriorGamma(double g)