Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.Algorithms.Image.Segmentation.seedGrid
Stay organized with collections
Save and categorize content based on your preferences.
Selects seed pixels for clustering.
| Usage | Returns | ee.Algorithms.Image.Segmentation.seedGrid(size, gridType) | Image |
| Argument | Type | Details | size | Integer, default: 5 | The superpixel seed location spacing, in pixels. |
gridType | String, default: "square" | Type of grid. One of 'square' or 'hex'. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],["This describes a function `ee.Algorithms.Image.Segmentation.seedGrid` that generates seed pixels for image clustering. It takes two arguments: `size`, an integer determining the seed spacing in pixels (defaulting to 5), and `gridType`, a string specifying the grid shape as either \"square\" or \"hex\" (defaulting to \"square\"). The function returns an Image, which represents the grid of selected seed pixels.\n"]]