PyramidingPolicy
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัลกอริทึมที่จะใช้เมื่อสร้างเวอร์ชันที่มีความละเอียดต่ำของแถบรูปภาพ โดยค่าเริ่มต้น ระบบจะคำนวณมาสก์เป็นค่าเฉลี่ยของมาสก์อินพุต ซึ่งแสดงถึงน้ำหนักรวมของข้อมูลอินพุตที่ใช้คำนวณสถิติเอาต์พุตที่ขอ ในกรณีของ SAMPLE ระบบจะใช้มาสก์ของพิกเซลที่สุ่มตัวอย่างโดยตรง
Enum |
PYRAMIDING_POLICY_UNSPECIFIED |
ไม่ได้ระบุ |
MEAN |
พิกเซลเอาต์พุตคือค่าเฉลี่ยถ่วงน้ำหนักของมาสก์ของพิกเซลอินพุต ควรใช้กับผลลัพธ์จากการสังเกตโดยตรงและปริมาณต่อเนื่อง เช่น อุณหภูมิ |
SAMPLE |
พิกเซลเอาต์พุตเหมือนกับพิกเซลอินพุตด้านซ้ายบน ควรใช้สำหรับแถบ QA/บิตมาสก์หรือฟิลด์อื่นๆ ที่ไม่ต่อเนื่อง เช่น วันที่ได้พิกเซล |
MIN |
พิกเซลเอาต์พุตคือค่าต่ำสุดของพิกเซลอินพุต |
MAX |
พิกเซลเอาต์พุตคือค่าสูงสุดของพิกเซลอินพุต |
MODE |
พิกเซลเอาต์พุตคือโหมดที่ถ่วงน้ำหนักมาสก์ของพิกเซลอินพุต ควรใช้สำหรับแถบข้อมูลปกคลุมพื้นดิน |
MEDIAN |
พิกเซลเอาต์พุตคือค่ามัธยฐานถ่วงน้ำหนักของมาสก์ของพิกเซลอินพุต ในกรณีที่ค่าเท่ากัน ระบบจะใช้ค่าเฉลี่ยของค่า 2 ค่าที่อยู่ตรงกลาง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThe pyramiding policy determines how reduced-resolution versions of image bands are created, impacting the representation of pixel values at lower resolutions.\u003c/p\u003e\n"],["\u003cp\u003eBy default, the \u003ccode\u003eMEAN\u003c/code\u003e policy is used, calculating the output pixel as the average of input pixels, weighted by their masks, ideal for continuous data like temperature.\u003c/p\u003e\n"],["\u003cp\u003eAlternative policies like \u003ccode\u003eSAMPLE\u003c/code\u003e, \u003ccode\u003eMIN\u003c/code\u003e, \u003ccode\u003eMAX\u003c/code\u003e, \u003ccode\u003eMODE\u003c/code\u003e, and \u003ccode\u003eMEDIAN\u003c/code\u003e offer different methods for pixel value determination, catering to various data types such as QA bands, categorical data, and more.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSAMPLE\u003c/code\u003e policy directly uses the upper-left input pixel for the output, suitable for non-continuous fields like date of acquisition or QA bitmask bands.\u003c/p\u003e\n"],["\u003cp\u003eUsers can choose the most appropriate policy depending on the nature of the data and desired outcome for image reduction.\u003c/p\u003e\n"]]],[],null,["# PyramidingPolicy\n\nThe algorithm to be used when creating reduced-resolution versions of an image band. By default, the mask is computed as the MEAN of the input masks, reflecting the total weight of the input data over which the requested output statistic was calculated. In the case of SAMPLE, the sampled pixel's mask is used directly.\n\n| Enums ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `PYRAMIDING_POLICY_UNSPECIFIED` | Not specified. |\n| `MEAN` | Output pixel is the mask-weighted mean of the input pixels. Should be used for direct observation results and continuous quantities like temperature. |\n| `SAMPLE` | Output pixel is identical to the upper-left input pixel. Should be used for QA/bitmask bands or other non-continuous fields like date of pixel acquisition. |\n| `MIN` | Output pixel is the minimum value of the input pixels. |\n| `MAX` | Output pixel is the maximum value of the input pixels. |\n| `MODE` | Output pixel is the mask-weighted mode of the input pixels. Should be used for landcover bands. |\n| `MEDIAN` | Output pixel is the mask-weighted median of the input pixels. In case of a tie, the mean of the middle two values is used. |"]]