ee.Image.reduce
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Stosuje funkcję redukującą do wszystkich pasm obrazu.
Reduktor musi mieć jedno wejście i będzie wywoływany w przypadku każdego piksela, aby zredukować stos wartości pasm.
Obraz wyjściowy będzie miał po jednym paśmie dla każdego wyniku funkcji redukującej.
Wykorzystanie | Zwroty |
---|
Image.reduce(reducer) | Obraz |
Argument | Typ | Szczegóły |
---|
to: image | Obraz | Obraz do zmniejszenia. |
reducer | Ograniczenie | Reduktor, który ma zostać zastosowany do danego obrazu. |
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\u003eApplies a reducer function to all bands of an image, processing each pixel's band values.\u003c/p\u003e\n"],["\u003cp\u003eThe reducer's output determines the number of bands in the resulting image.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eImage\u003c/code\u003e object is returned after the reducer is applied to the input image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.reduce\n\nApplies a reducer to all of the bands of an image.\n\n\u003cbr /\u003e\n\nThe reducer must have a single input and will be called at each pixel to reduce the stack of band values.\n\nThe output image will have one band for each reducer output.\n\n| Usage | Returns |\n|-------------------------|---------|\n| Image.reduce`(reducer)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------|------------------------------------------|\n| this: `image` | Image | The image to reduce. |\n| `reducer` | Reducer | The reducer to apply to the given image. |"]]