public final class BilinearInterpolationResampling extends Object implements Resampling
Resampling.Index, Resampling.RasterBICUBIC_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, waitcomputeCornerBasedIndex, getKernelSizepublic String getName()
ResamplinggetName in interface Resamplingpublic final Resampling.Index createIndex()
ResamplingcreateIndex in interface Resamplingpublic final void computeIndex(double x,
double y,
int width,
int height,
Resampling.Index index)
ResamplingcomputeIndex in interface Resamplingx - 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
ResamplingFloat.NaN.resample in interface Resamplingraster - 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.