public class NeighbourChoiceInterpolator extends EightNeighbourInterpolator implements ProbabilisticInterpolator, ImageInterpolator
Constructor and Description |
---|
NeighbourChoiceInterpolator(TractographyImage image,
java.util.Random r) |
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)
Get the tracking direction at some point.
|
void |
resetRandomization()
Resets the PICo randomization, so that new samples will be drawn from the ODFs.
|
setInterpolationVoxels, setInterpolationVoxelsDX, setInterpolationVoxelsDY, setInterpolationVoxelsDZ
public NeighbourChoiceInterpolator(TractographyImage image, java.util.Random r)
public Vector3D getTrackingDirection(Point3D point, Vector3D previousDirection)
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
pdIndex
- follow this pd for the first tracking step.direction
- if true, the direction will be the pd, if false, it will be the
negated pd.point
- the seed point in mmpublic final void resetRandomization()
ProbabilisticInterpolator
resetRandomization
in interface ProbabilisticInterpolator