Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aby zmniejszyć Image, użyj image.reduce(). Redukcja obrazu działa podobnie do funkcji imageCollection.reduce(), z tym że zamiast obrazów z kolekcji do funkcji przekazywane są pasma obrazu. Dane wyjściowe są również obrazem z liczbą pasm równą liczbie wyjść reduktora. Na przykład:
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-02-18 UTC."],[[["`image.reduce()` processes an image's bands with a reducer, similar to how `imageCollection.reduce()` processes images in a collection."],["It outputs a new image with band count equal to the reducer's output count, for instance, using `ee.Reducer.max()` results in a single-band image with the maximum value across the input bands."],["The provided code demonstrates reducing a Landsat 8 image to a single-band image representing the maximum value across selected bands (B4, B3, B2)."]]],[]]