public interface Resampling
Modifier and Type | Interface and Description |
---|---|
static class |
Resampling.Index
An index is used to provide resampling information at a given raster position x,y.
|
static interface |
Resampling.Raster
A raster is a rectangular grid which provides sample values at a given raster position x,y.
|
Modifier and Type | Field and Description |
---|---|
static Resampling |
BICUBIC_INTERPOLATION
The bicubic spline interpolation resampling method.
|
static Resampling |
BILINEAR_INTERPOLATION
The bilinear interpolation resampling method.
|
static Resampling |
BISINC_11_POINT_INTERPOLATION |
static Resampling |
BISINC_21_POINT_INTERPOLATION |
static Resampling |
BISINC_5_POINT_INTERPOLATION
The bisinc interpolation resampling method.
|
static Resampling |
CUBIC_CONVOLUTION
The cubic convolution resampling method.
|
static Resampling |
NEAREST_NEIGHBOUR
The nearest neighbour resampling method.
|
Modifier and Type | Method and Description |
---|---|
default void |
computeCornerBasedIndex(double x,
double y,
int width,
int height,
Resampling.Index index)
Computes the index's properties for the given non-pixel coordinate without pixel center intensity assumption.
|
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.
|
default int |
getKernelSize() |
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.
|
static final Resampling NEAREST_NEIGHBOUR
static final Resampling BILINEAR_INTERPOLATION
static final Resampling CUBIC_CONVOLUTION
static final Resampling BISINC_5_POINT_INTERPOLATION
static final Resampling BISINC_11_POINT_INTERPOLATION
static final Resampling BISINC_21_POINT_INTERPOLATION
static final Resampling BICUBIC_INTERPOLATION
String getName()
Resampling.Index createIndex()
void computeIndex(double x, double y, int width, int height, Resampling.Index index)
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 assigneddefault void computeCornerBasedIndex(double x, double y, int width, int height, Resampling.Index index)
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 assigneddouble resample(Resampling.Raster raster, Resampling.Index index) throws Exception
Float.NaN
.raster
- the rasterindex
- the index, must be computed using the 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 errordefault int getKernelSize()
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.