gov.nasa.worldwind.examples.util
Class IDWInterpolation
java.lang.Object
gov.nasa.worldwind.examples.util.IDWInterpolation
public class IDWInterpolation
- extends Object
Utility class for filling in missing values in elevations.
Uses Inverse Distance Weighted method for determining the elevation value of a missing value.
Uses 8 neighboring cells:
4 cardinal directions and 4 diagnal
If a neighboring cell is also missing an elevation value the algorithm extends up to the MAX_SEARCH_RADIUS
in the same direction.
Note: Currently only requires one neighbor to determine a value, should there be a requirement for number of neighbors
with values?
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_NUM_NEIGHBORS
public static final int MAX_NUM_NEIGHBORS
- See Also:
- Constant Field Values
MIN_NUM_NEIGHBORS
public static final int MIN_NUM_NEIGHBORS
- See Also:
- Constant Field Values
IDWInterpolation
public IDWInterpolation(int min)
fillVoids
public void fillVoids(BufferWrapperRaster raster,
double xPixelSize,
double yPixelSize)
- Fill missing values in elevation rasters
- Parameters:
raster
- elevation raster with missing valuesxPixelSize
- size of cell in X directionyPixelSize
- size of cell in Y direction
getMinNumNeighbors
public int getMinNumNeighbors()
setMinNumNeighbors
public void setMinNumNeighbors(int min)