ee.Image.connectedComponents
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Znajduje połączone komponenty o tej samej wartości pierwszego pasma danych wejściowych i oznacza je globalnie unikalną wartością. Spójność jest określana przez dany kernel. Obiekty większe niż maxSize są traktowane jako tło i maskowane.
Wykorzystanie | Zwroty |
---|
Image.connectedComponents(connectedness, maxSize) | Obraz |
Argument | Typ | Szczegóły |
---|
to: image | Obraz | Obraz do oznaczenia. |
connectedness | Jądro | Jądro łączności. |
maxSize | Liczba całkowita | Maksymalny rozmiar obiektów do oznaczenia etykietą. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eIdentifies and labels connected regions within an image that share the same value in the first band.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a user-defined kernel to determine the connectivity between pixels for region identification.\u003c/p\u003e\n"],["\u003cp\u003eAssigns a unique label to each connected component, differentiating them for analysis.\u003c/p\u003e\n"],["\u003cp\u003eMasks and excludes objects exceeding a specified maximum size, treating them as background.\u003c/p\u003e\n"]]],[],null,["# ee.Image.connectedComponents\n\nFinds connected components with the same value of the first band of the input and labels them with a globally unique value. Connectedness is specified by the given kernel. Objects larger than maxSize are considered background, and are masked.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------|---------|\n| Image.connectedComponents`(connectedness, maxSize)` | Image |\n\n| Argument | Type | Details |\n|-----------------|---------|----------------------------------------|\n| this: `image` | Image | The image to label. |\n| `connectedness` | Kernel | Connectedness kernel. |\n| `maxSize` | Integer | Maximum size of objects to be labeled. |"]]