public final class DT_LinearInterpolator extends EightNeighbourInterpolator implements ImageInterpolator
Constructor and Description |
---|
DT_LinearInterpolator(DT_TractographyImage data)
Construct an interpolator.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
getTrackingDirection(Point3D point,
int pdIndex,
boolean direction)
Get the initial tracking direction, given a pdIndex and a seed point.
|
Vector3D |
getTrackingDirection(Point3D point,
Vector3D previousDirection)
Gets tracking direction at some point.
|
setInterpolationVoxels, setInterpolationVoxelsDX, setInterpolationVoxelsDY, setInterpolationVoxelsDZ
public DT_LinearInterpolator(DT_TractographyImage data)
data
- the dataset to use for interpolation.public Vector3D getTrackingDirection(Point3D point, Vector3D previousDirection)
ImageInterpolator
getTrackingDirection
in interface ImageInterpolator
point
- the point in mm to interpolate at.previousDirection
- the direction of the previous tracking step.public Vector3D getTrackingDirection(Point3D point, int pdIndex, boolean direction)
getTrackingDirection
in interface ImageInterpolator
direction
- if true, the direction will be the PD, if false, it will be the negated PD.point
- the seed point in mmpdIndex
- the numerical index of the PD to follow, from 0 to (number of PDs) - 1.