Stay organized with collections
Save and categorize content based on your preferences.
Applies a reducer to all of the pixels inside of each 'object'. Pixels are considered to belong to an object if they are connected (8-way) and have the same value in the 'label' band. The label band is only used to identify the connectedness; the rest are provided as inputs to the reducer.
The reducer to apply to pixels within the connected component.
labelBand
String, default: null
The name of the band to use to detect connectedness. If unspecified, the first band is used.
maxSize
Integer, default: 256
Size of the neighborhood to consider when aggregating values. Any objects larger than maxSize in either the horizontal or vertical dimension will be masked, since portions of the object might be outside of the neighborhood.
[[["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."],[[["Reduces pixel values within connected regions (objects) of an image based on a user-provided reducer function."],["Objects are identified by contiguous pixels sharing the same value in a specified label band (defaults to the first band if not provided)."],["The reducer function receives all image bands except the label band as input and aggregates pixel values within each object."],["A `maxSize` parameter limits the size of objects considered for reduction, masking larger objects to avoid edge effects."]]],[]]