Converts a single band image of equal-shape multidimensional pixels to an image of scalar pixels, with one band for each element of the array.
Usage | Returns |
---|---|
Image.arrayFlatten(coordinateLabels, separator) | Image |
Argument | Type | Details |
---|---|---|
this: image | Image | Image of multidimensional pixels to flatten. |
coordinateLabels | List | Name of each position along each axis. For example, 2x2 arrays with axes meaning 'day' and 'color' could have labels like [['monday', 'tuesday'], ['red', 'green']], resulting in band names'monday_red', 'monday_green', 'tuesday_red', and 'tuesday_green'. |
separator | String, default: "_" | Separator between array labels in each band name. |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!