Stay organized with collections
Save and categorize content based on your preferences.
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'.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["`Image.arrayFlatten` transforms an image containing multidimensional pixel arrays into a multi-band image with scalar pixel values."],["Each element of the input array becomes a separate band in the output image."],["Users can specify custom names for the output bands using the `coordinateLabels` parameter."],["The `separator` parameter allows for customization of the delimiter used in band names derived from array indices."],["This function is useful for working with data structured as arrays within an image, such as time series or multi-spectral data organized in matrices."]]],[]]