ee.Algorithms.Image.Segmentation.seedGrid
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Sélectionne les pixels de départ pour le clustering.
Utilisation | Renvoie |
---|
ee.Algorithms.Image.Segmentation.seedGrid(size, gridType) | Image |
Argument | Type | Détails |
---|
size | Entier, par défaut : 5 | Espacement de l'emplacement de départ du superpixel, en pixels. |
gridType | Chaîne, valeur par défaut : "square" | Type de grille. ('square' ou 'hex') |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eThis algorithm selects seed pixels for image segmentation using a grid-based approach.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the spacing of seed points with the \u003ccode\u003esize\u003c/code\u003e parameter and choose between square or hexagonal grid types using the \u003ccode\u003egridType\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe output is an image containing the selected seed pixels.\u003c/p\u003e\n"]]],["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"],null,["# ee.Algorithms.Image.Segmentation.seedGrid\n\nSelects seed pixels for clustering.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------|---------|\n| `ee.Algorithms.Image.Segmentation.seedGrid(`*size* `, `*gridType*`)` | Image |\n\n| Argument | Type | Details |\n|------------|---------------------------|--------------------------------------------------|\n| `size` | Integer, default: 5 | The superpixel seed location spacing, in pixels. |\n| `gridType` | String, default: \"square\" | Type of grid. One of 'square' or 'hex'. |"]]