|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Resampling
An interface used to implement different resampling strategies.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
static Resampling |
BILINEAR_INTERPOLATION
The bilinear interpolation resampling method. |
static Resampling |
CUBIC_CONVOLUTION
The cubic convolution resampling method. |
static Resampling |
NEAREST_NEIGHBOUR
The nearest neighbour resampling method. |
| Method Summary | |
|---|---|
void |
computeIndex(float x,
float 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. |
float |
resample(Resampling.Raster raster,
Resampling.Index index)
Performs the actual resampling operation. |
| Field Detail |
|---|
static final Resampling NEAREST_NEIGHBOUR
static final Resampling BILINEAR_INTERPOLATION
static final Resampling CUBIC_CONVOLUTION
| Method Detail |
|---|
String getName()
Resampling.Index createIndex()
void computeIndex(float x,
float 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 assigned
float resample(Resampling.Raster raster,
Resampling.Index index)
throws Exception
Float.NaN.
raster - the rasterindex - the index, must be computed using the computeIndex(float, float, int, int, org.esa.beam.framework.dataop.resamp.Resampling.Index) method
Float.NaN.
Exception - if a non-runtime error occurs, e.g I/O error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||