Package gov.nasa.worldwind.util
Class ImageInterpolator
- java.lang.Object
-
- gov.nasa.worldwind.util.ImageInterpolator
-
- Direct Known Subclasses:
GeographicImageInterpolator
public class ImageInterpolator extends java.lang.Object
Provides searching and interpolation of a grid of scalars.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ImageInterpolator.Cell
static class
ImageInterpolator.ContainingCell
-
Field Summary
Fields Modifier and Type Field Description protected int
cellSize
protected java.awt.Dimension
gridSize
protected BasicMemoryCache
kidCache
protected ImageInterpolator.Cell
root
protected float[]
xs
protected float[]
ys
-
Constructor Summary
Constructors Constructor Description ImageInterpolator(java.awt.Dimension gridSize, float[] xs, float[] ys, int depth, int cellSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
gridSize
protected final java.awt.Dimension gridSize
-
root
protected final ImageInterpolator.Cell root
-
xs
protected final float[] xs
-
ys
protected final float[] ys
-
cellSize
protected final int cellSize
-
kidCache
protected final BasicMemoryCache kidCache
-
-
Method Detail
-
makeRootCell
protected ImageInterpolator.Cell makeRootCell(int m0, int m1, int n0, int n1)
-
findContainingCell
public ImageInterpolator.ContainingCell findContainingCell(float x, float y)
-
findContainingCell
protected ImageInterpolator.ContainingCell findContainingCell(ImageInterpolator.Cell cell, float x, float y)
-
checkContainment
protected ImageInterpolator.ContainingCell checkContainment(float x, float y, ImageInterpolator.Cell cell)
-
computeBilinearCoordinates
protected double[] computeBilinearCoordinates(float x, float y, ImageInterpolator.Cell cell)
-
getFieldIndices
protected int[] getFieldIndices(ImageInterpolator.Cell cell)
-
-