ee.Image.reduce
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ใช้ตัวลดกับทุกแถบของรูปภาพ
ตัวลดต้องมีอินพุตเดียวและจะเรียกใช้ที่แต่ละพิกเซลเพื่อลดสแต็กของค่าแถบ
รูปภาพเอาต์พุตจะมีแถบ 1 แถบสำหรับเอาต์พุตของตัวลดแต่ละตัว
การใช้งาน | การคืนสินค้า |
---|
Image.reduce(reducer) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ image | รูปภาพ | รูปภาพที่จะลดขนาด |
reducer | ตัวลดตำแหน่ง | ตัวลดที่จะใช้กับรูปภาพที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]