public class EightNeighbourInterpolator
extends java.lang.Object
Constructor and Description |
---|
EightNeighbourInterpolator(int[] dataDims,
double[] voxelDims)
Construct an interpolator.
|
EightNeighbourInterpolator(int xDataSize,
int yDataSize,
int zDataSize,
double xVoxelSize,
double yVoxelSize,
double zVoxelSize)
Construct an interpolator.
|
Modifier and Type | Method and Description |
---|---|
int |
setInterpolationVoxels(Point3D point,
double[] interpComponents,
int[] indices)
Sets values relating to the position of a point, for use in interpolatation.
|
int |
setInterpolationVoxelsDX(Point3D point,
double[] interpComponents,
int[] indices)
As setInterpolationVoxels, but the components are now
for computing the derivative with respect to x.
|
int |
setInterpolationVoxelsDY(Point3D point,
double[] interpComponents,
int[] indices)
As setInterpolationVoxels, but the components are now
for computing the derivative with respect to y.
|
int |
setInterpolationVoxelsDZ(Point3D point,
double[] interpComponents,
int[] indices)
As setInterpolationVoxels, but the components are now
for computing the derivative with respect to z.
|
public EightNeighbourInterpolator(int xDataSize, int yDataSize, int zDataSize, double xVoxelSize, double yVoxelSize, double zVoxelSize)
public EightNeighbourInterpolator(int[] dataDims, double[] voxelDims)
public final int setInterpolationVoxels(Point3D point, double[] interpComponents, int[] indices)
point
- the point in mm where interpolation is to occur.interpComponents
- the linear interpolation components, in order
{000, 001, 010, 011, 100, 101, 110, 111} where the indexes are xyz, so 000 is
to the rear lower left (x0, y0, z0), and 011 is the front upper left (x0, y1, z1).indices
- a container for the dataset indices of the interpolation voxels.
In cases where the point is on the edge of the dataset, the interpolation will be
between the edge voxel and itself. The parameter should be of the format int[6]:
indices[0] == x0
indices[1] == x1
indices[2] == y0
indices[3] == y1
indices[4] == z0
indices[5] == z1
where
[x0][y0][z0]
== the voxel to the front lower left of
point
.
[x1][y0][z0]
== the voxel to the front lower right of
point
.
[x0][y1][z0]
== the voxel to the front upper left of
point
.
[x0][y0][z1]
== the voxel to the rear lower left of
point
.
public final int setInterpolationVoxelsDX(Point3D point, double[] interpComponents, int[] indices)
public final int setInterpolationVoxelsDY(Point3D point, double[] interpComponents, int[] indices)
public final int setInterpolationVoxelsDZ(Point3D point, double[] interpComponents, int[] indices)