public class TractStatisticFilter
extends java.lang.Object
Constructor and Description |
---|
TractStatisticFilter(double[][][] scalarData,
double[] voxelDims)
For Matlab.
|
TractStatisticFilter(int[] dataDims,
double[] voxelDims)
Constructor for filters that do not use scalars.
|
TractStatisticFilter(ScalarImage scalars)
Construct an filter that uses the scalar image to define the tract statistic.
|
Modifier and Type | Method and Description |
---|---|
double[] |
processTract(Tract t)
Process a tract.
|
void |
setInterpolate(boolean interp)
If interpolation is enabled, the scalar image is
linearly interpolated.
|
void |
setTractStatistic(java.lang.String stat)
Sets the statistic to be computed for each tract.
|
public TractStatisticFilter(ScalarImage scalars)
scalars
- a ScalarImage. The interpolation scheme of the image may be changed
if interpolation is enabled for the filter. The image should be in the
same space as the tracts.public TractStatisticFilter(double[][][] scalarData, double[] voxelDims)
data
- the scalar data.voxelDims
- voxel dimensions in mm.public TractStatisticFilter(int[] dataDims, double[] voxelDims)
public void setTractStatistic(java.lang.String stat)
stat
- either: none, mean, min, max, median, var, meanvar (mean and variance) or length.public void setInterpolate(boolean interp)
public double[] processTract(Tract t)