ee.Image.clamp
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ยึดค่าในแถบทั้งหมดของรูปภาพให้อยู่ภายในช่วงที่ระบุ
การใช้งาน | การคืนสินค้า |
---|
Image.clamp(low, high) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ input | รูปภาพ | รูปภาพที่จะยึด |
low | ทศนิยม | ค่าต่ำสุดที่อนุญาตในช่วง |
high | ทศนิยม | ค่าสูงสุดที่อนุญาตในช่วง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eClamps pixel values within a specified range, ensuring all bands fall between a minimum and maximum value.\u003c/p\u003e\n"],["\u003cp\u003eTakes an input image, a minimum (\u003ccode\u003elow\u003c/code\u003e), and a maximum (\u003ccode\u003ehigh\u003c/code\u003e) value as arguments.\u003c/p\u003e\n"],["\u003cp\u003eModifies the input image directly, returning a new image with clamped pixel values.\u003c/p\u003e\n"],["\u003cp\u003eUseful for adjusting image contrast or ensuring pixel values are within a desired range for further processing.\u003c/p\u003e\n"]]],[],null,["# ee.Image.clamp\n\nClamps the values in all bands of an image to all lie within the specified range.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------|---------|\n| Image.clamp`(low, high)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|-----------------------------------------|\n| this: `input` | Image | The image to clamp. |\n| `low` | Float | The minimum allowed value in the range. |\n| `high` | Float | The maximum allowed value in the range. |"]]