|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.utils.BilinearInterpolatingDoubleArray
public class BilinearInterpolatingDoubleArray
Class for interpolation on an arbitrary regular 2-D grid. (Inplementation follows formula as displayed in Wikipedia.)
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
double |
getValue(double meshPointX,
double meshPointY)
Interpolate an arbitrary point between the meshes. |
static void |
main(java.lang.String[] args)
Code for testing using KONRAD 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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public double getValue(double meshPointX, double meshPointY) throws java.lang.Exception
meshPointX
- the x-coordinatemeshPointY
- the y-coordinate
java.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |