gov.nasa.worldwind.util
Class ImageInterpolator
java.lang.Object
gov.nasa.worldwind.util.ImageInterpolator
- Direct Known Subclasses:
- GeographicImageInterpolator
public class ImageInterpolator
- extends Object
Provides searching and interpolation of a grid of scalars.
|
Method Summary |
protected ImageInterpolator.ContainingCell |
checkContainment(float x,
float y,
ImageInterpolator.Cell cell)
|
protected double[] |
computeBilinearCoordinates(float x,
float y,
ImageInterpolator.Cell cell)
|
ImageInterpolator.ContainingCell |
findContainingCell(float x,
float y)
|
protected ImageInterpolator.ContainingCell |
findContainingCell(ImageInterpolator.Cell cell,
float x,
float y)
|
protected int[] |
getFieldIndices(ImageInterpolator.Cell cell)
|
protected ImageInterpolator.Cell |
makeRootCell(int m0,
int m1,
int n0,
int n1)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cellSize
protected final int cellSize
gridSize
protected final Dimension gridSize
kidCache
protected final BasicMemoryCache kidCache
root
protected final ImageInterpolator.Cell root
xs
protected final float[] xs
ys
protected final float[] ys
ImageInterpolator
public ImageInterpolator(Dimension gridSize,
float[] xs,
float[] ys,
int depth,
int cellSize)
checkContainment
protected ImageInterpolator.ContainingCell checkContainment(float x,
float y,
ImageInterpolator.Cell cell)
computeBilinearCoordinates
protected double[] computeBilinearCoordinates(float x,
float y,
ImageInterpolator.Cell cell)
findContainingCell
public ImageInterpolator.ContainingCell findContainingCell(float x,
float y)
findContainingCell
protected ImageInterpolator.ContainingCell findContainingCell(ImageInterpolator.Cell cell,
float x,
float y)
getFieldIndices
protected int[] getFieldIndices(ImageInterpolator.Cell cell)
makeRootCell
protected ImageInterpolator.Cell makeRootCell(int m0,
int m1,
int n0,
int n1)