public class BilinearInterpolator extends Object
NO_DATA cell values are supported in the source grid. There are two ways of handling the boundary between NO_DATA cells and data cells:
Reference: http://en.wikipedia.org/wiki/Bilinear_interpolation.
| Constructor and Description |
|---|
BilinearInterpolator(float[][] src)
Creates a new interpolator on a given source grid.
|
BilinearInterpolator(float[][] src,
float noDataValue)
Creates a new interpolator on a given source grid.
|
| Modifier and Type | Method and Description |
|---|---|
float[][] |
interpolate(int width,
int height,
boolean smoothBoundary)
Interpolates the source grid to a new grid of different dimensions.
|
public BilinearInterpolator(float[][] src)
src - the source gridpublic BilinearInterpolator(float[][] src,
float noDataValue)
src - the source gridnoDataValue - the NO_DATA value (if none use Float.NaN)public float[][] interpolate(int width,
int height,
boolean smoothBoundary)
width - the width of the destination gridheight - the height of the destination gridsmoothBoundary - true if boundary smoothing should be performedCopyright © 1996–2019 Geotools. All rights reserved.