public class TendInterpolator extends java.lang.Object implements ImageInterpolator
Constructor and Description |
---|
TendInterpolator(DT_TractographyImage image)
Default constructor, doesn't use tend at all.
|
TendInterpolator(DT_TractographyImage image,
double[][][] tendF,
double tendG)
Weight the tend term independently in each voxel.
|
TendInterpolator(DT_TractographyImage image,
double tendF,
double tendG)
Weight the tend term by a constant.
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
getTrackingDirection(int i,
int j,
int k,
Vector3D previousDirection) |
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.
|
public TendInterpolator(DT_TractographyImage image)
public TendInterpolator(DT_TractographyImage image, double tendF, double tendG)
tendF
- between 0.0 (ignore e_1) and 1.0 (ignore tend).tendG
- between 0.0 (ignore deflection, tend term is previous direction) and 1.0 (trust deflection,
tend term is D * v_{in}).public TendInterpolator(DT_TractographyImage image, double[][][] tendF, double tendG)
tendF
- an image of tend parameters, of the same
dimension as the tensor image and normalized between 0 and 1.tendG
- between 0.0 (ignore deflection, tend term is previous direction) and 1.0 (trust deflection,
tend term is D * v_{in}).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(int i, int j, int k, Vector3D previousDirection)
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.