Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Dodaje pierwszą wartość do drugiej dla każdej pasującej pary pasm w obrazie1 i obrazie2. Jeśli obraz1 lub obraz2 ma tylko 1 pasmo, jest ono używane w porównaniu ze wszystkimi pasmami na drugim obrazie. Jeśli obrazy mają taką samą liczbę pasm, ale nie mają takich samych nazw, są używane parami w naturalnej kolejności. Pasma wyjściowe są nazwane zgodnie z dłuższym z 2 wejść lub, jeśli mają one taką samą długość, w kolejności obrazu 1. Typ pikseli wyjściowych jest sumą typów wejściowych.
[[["Ł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-07-26 UTC."],[[["`Image.add()` performs pixel-wise addition between two images, adding the values of corresponding bands."],["If the input images have different numbers of bands, the single-band image is applied to all bands of the multi-band image."],["Output band names and data types are determined based on the input images, prioritizing the longer or first image."],["Numerical inputs are automatically converted to images, allowing for operations with constants."],["This function is commonly used for arithmetic calculations on raster data, such as combining spectral bands or applying offsets."]]],["The `add()` method combines two images by adding corresponding band values. If one image has a single band, it's applied to all bands of the other. When both images have multiple bands with different names, bands are added pairwise. Output band names are taken from the longer input image, or the first if they are equal in length, with output pixel type being the union of the two inputs.\n"]]