Concatenates pixels from each band into a single array per pixel. The result will be masked if any input bands are masked.
Usage | Returns |
---|---|
Image.toArray(axis) | Image |
Argument | Type | Details |
---|---|---|
this: image | Image | Image of bands to convert to an array per pixel. Bands must have scalar pixels, or array pixels with equal dimensionality. |
axis | Integer, default: 0 | Axis to concatenate along; must be at least 0 and at most the dimension of the inputs. If the axis equals the dimension of the inputs, the result will have 1 more dimension than the inputs. |