Stay organized with collections
Save and categorize content based on your preferences.
Pads the array values in each pixel to be a fixed length. The pad value will be appended to each array to extend it to given length along each axis. All bands of the image must be array-valued and have the same dimensions.
Usage
Returns
Image.arrayPad(lengths, pad)
Image
Argument
Type
Details
this: image
Image
Array image to pad.
lengths
List
A list of desired lengths for each axis in the output arrays. Arrays are already as large or larger than the given length will be unchanged along that axis.
[[["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."],[[["`arrayPad` extends the array values in each image pixel to a specified length using a provided pad value."],["It accepts an array image, a list of desired lengths for each axis, and an optional pad value (defaulting to 0)."],["If an array is already at or beyond the desired length, it remains unchanged along that axis."],["All bands in the image must be array-valued and share the same dimensions for the function to work correctly."],["This function is useful for standardizing array lengths in images for further processing."]]],[]]