ee.Image.connectedPixelCount

Generate an image where each pixel contains the number of 4- or 8-connected neighbors (including itself).
Usage Returns
Image. connectedPixelCount ( maxSize , eightConnected ) Image
Argument Type Details
this: input
Image The input image.
maxSize
Integer, default: 100 The maximum size of the neighborhood in pixels.
eightConnected
Boolean, default: true Whether to use 8-connected rather 4-connected rules.
Create a Mobile Website
View Site in Mobile | Classic
Share by: