public final class BilinearInterpolationResampling extends Object implements Resampling
Resampling.Index, Resampling.Raster
BICUBIC_INTERPOLATION, BILINEAR_INTERPOLATION, BISINC_11_POINT_INTERPOLATION, BISINC_21_POINT_INTERPOLATION, BISINC_5_POINT_INTERPOLATION, CUBIC_CONVOLUTION, NEAREST_NEIGHBOUR
Constructor and Description |
---|
BilinearInterpolationResampling() |
Modifier and Type | Method and Description |
---|---|
void |
computeIndex(double x,
double y,
int width,
int height,
Resampling.Index index)
Computes the index's properties for the given pixel coordinate.
|
Resampling.Index |
createIndex()
Factory method which creates an appropriate index for raster access.
|
String |
getName()
Gets a unique identifier for this resampling method, e.g.
|
double |
resample(Resampling.Raster raster,
Resampling.Index index)
Performs the actual resampling operation.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeCornerBasedIndex, getKernelSize
public String getName()
Resampling
getName
in interface Resampling
public final Resampling.Index createIndex()
Resampling
createIndex
in interface Resampling
public final void computeIndex(double x, double y, int width, int height, Resampling.Index index)
Resampling
computeIndex
in interface Resampling
x
- the raster's x coordinatey
- the raster's y coordinatewidth
- the raster's widthheight
- the raster's heightindex
- the index object to which the results are to be assignedpublic final double resample(Resampling.Raster raster, Resampling.Index index) throws Exception
Resampling
Float.NaN
.resample
in interface Resampling
raster
- the rasterindex
- the index, must be computed using the Resampling.computeIndex(double, double, int, int, org.esa.snap.core.dataop.resamp.Resampling.Index)
methodFloat.NaN
.Exception
- if a non-runtime error occurs, e.g I/O errorCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.