public class BilinearInterpolatingDoubleArray
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BilinearInterpolatingDoubleArray(double[] meshx,
double[] meshy,
double[][] values)
Constructor with requires an x-mesh, a y-mesh, and a two-dimensional array of values at the mesh points
|
Modifier and Type | Method and Description |
---|---|
double |
getValue(double meshPointX,
double meshPointY)
Interpolate an arbitrary point between the meshes.
|
static void |
main(java.lang.String[] args)
Code for testing using CONRAD Software package.
|
ij.process.FloatProcessor |
toFloatProcessor(int binsX,
int binsY)
Renders a float processor of the 2-D array given the number of bins in x and y direction
|
public BilinearInterpolatingDoubleArray(double[] meshx, double[] meshy, double[][] values)
meshx
- the mesh spacing in x directionmeshy
- the mesh spacing in y directionvalues
- the values at the mesh points.public double getValue(double meshPointX, double meshPointY) throws java.lang.Exception
meshPointX
- the x-coordinatemeshPointY
- the y-coordinatejava.lang.Exception
- may happen if the point is not within the grid.public static void main(java.lang.String[] args)
args
- public ij.process.FloatProcessor toFloatProcessor(int binsX, int binsY)
binsX
- the number of bins in x directionbinsY
- the number of bins in y direction