ee.Algorithms.Image.Segmentation.seedGrid
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 algorithm selects seed pixels for image segmentation using a grid-based approach."],["Users can define the spacing of seed points with the `size` parameter and choose between square or hexagonal grid types using the `gridType` parameter."],["The output is an image containing the selected seed pixels."]]],["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"]]