Methods
(static) resample(valueArrays, inWidth, inHeight, outWidth, outHeight, methodopt) → {Array.<TypedArray>}
Resample the input arrays using nearest neighbor value selection.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
valueArrays |
Array.<TypedArray> | The input arrays to resample |
||
inWidth |
number | The width of the input rasters |
||
inHeight |
number | The height of the input rasters |
||
outWidth |
number | The desired width of the output rasters |
||
outHeight |
number | The desired height of the output rasters |
||
method |
string |
<optional> |
'nearest' | The desired resampling method |
- Source:
Returns:
The resampled rasters
- Type
- Array.<TypedArray>
(static) resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight) → {Array.<TypedArray>}
Resample the input arrays using bilinear interpolation.
Parameters:
Name | Type | Description |
---|---|---|
valueArrays |
Array.<TypedArray> | The input arrays to resample |
inWidth |
number | The width of the input rasters |
inHeight |
number | The height of the input rasters |
outWidth |
number | The desired width of the output rasters |
outHeight |
number | The desired height of the output rasters |
- Source:
Returns:
The resampled rasters
- Type
- Array.<TypedArray>
(static) resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight) → {Array.<TypedArray>}
Resample the input arrays using nearest neighbor value selection.
Parameters:
Name | Type | Description |
---|---|---|
valueArrays |
Array.<TypedArray> | The input arrays to resample |
inWidth |
number | The width of the input rasters |
inHeight |
number | The height of the input rasters |
outWidth |
number | The desired width of the output rasters |
outHeight |
number | The desired height of the output rasters |
- Source:
Returns:
The resampled rasters
- Type
- Array.<TypedArray>