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.ObjectProvides searching and interpolation of a grid of scalars.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classImageInterpolator.Cellstatic classImageInterpolator.ContainingCell
-
Field Summary
Fields Modifier and Type Field Description protected intcellSizeprotected java.awt.DimensiongridSizeprotected BasicMemoryCachekidCacheprotected ImageInterpolator.Cellrootprotected float[]xsprotected 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.ContainingCellcheckContainment(float x, float y, ImageInterpolator.Cell cell)protected double[]computeBilinearCoordinates(float x, float y, ImageInterpolator.Cell cell)ImageInterpolator.ContainingCellfindContainingCell(float x, float y)protected ImageInterpolator.ContainingCellfindContainingCell(ImageInterpolator.Cell cell, float x, float y)protected int[]getFieldIndices(ImageInterpolator.Cell cell)protected ImageInterpolator.CellmakeRootCell(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)
-
-