Type Definitions
-
ol.raster.Operation() experimental
src/ol/raster/operation.js, line 32 -
A function that takes an array of input data, performs some operation, and returns an array of ouput data. For
'pixel'
type operations, functions will be called with an array ofol.raster.Pixel
data and should return an array of the same. For'image'
type operations, functions will be called with an array ofhttps://developer.mozilla.org/en-US/docs/Web/API/ImageData
and should return an array of the same. The operations are called with a second "data" argument, which can be used for storage. The data object is accessible from raster events, where it can be initialized in "beforeoperations" and accessed again in "afteroperations". -
ol.raster.OperationType{string} experimental
-
Raster operation type. Supported values are
'pixel'
and'image'
. -
ol.raster.Pixel{Array.<number>} experimental
-
An array of numbers representing pixel values.