Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thêm giá trị đầu tiên vào giá trị thứ hai cho mỗi cặp dải tần số trùng khớp trong image1 và image2. Nếu image1 hoặc image2 chỉ có 1 dải tần, thì dải tần đó sẽ được dùng cho tất cả các dải tần trong hình ảnh còn lại. Nếu các hình ảnh có cùng số lượng dải tần nhưng không có cùng tên, thì chúng sẽ được sử dụng theo cặp theo thứ tự tự nhiên. Các dải đầu ra được đặt tên theo dải đầu vào dài hơn trong hai dải đầu vào, hoặc nếu chúng có độ dài bằng nhau, thì theo thứ tự của image1. Loại pixel đầu ra là hợp của các loại đầu vào.
Cách sử dụng
Giá trị trả về
Image.add(image2)
Hình ảnh
Đối số
Loại
Thông tin chi tiết
this: image1
Hình ảnh
Hình ảnh mà từ đó các dải toán hạng bên trái được lấy.
image2
Hình ảnh
Hình ảnh mà từ đó các dải toán hạng bên phải được lấy.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]