ee.Reducer.fixedHistogram
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างตัวลดที่จะคำนวณฮิสโตแกรมของอินพุตโดยใช้จำนวนที่แน่นอนของถังที่มีความกว้างคงที่ ระบบจะไม่สนใจค่าที่อยู่นอกช่วง [ค่าต่ำสุด, ค่าสูงสุด) เอาต์พุตคืออาร์เรย์ Nx2 ของขอบล่างของบัคเก็ตและการนับ (หรือการนับสะสม) และเหมาะสําหรับการใช้งานต่อพิกเซล
การใช้งาน | การคืนสินค้า |
---|
ee.Reducer.fixedHistogram(min, max, steps, cumulative) | ตัวลดตำแหน่ง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
min | ทศนิยม | ขอบเขตล่าง (รวม) ของที่เก็บข้อมูลแรก |
max | ทศนิยม | ขอบเขตบน (ไม่รวม) ของกลุ่มสุดท้าย |
steps | จำนวนเต็ม | จำนวนที่เก็บข้อมูลที่จะใช้ |
cumulative | บูลีน ค่าเริ่มต้น: false | เมื่อเป็นจริง จะสร้างฮิสโทแกรมสะสม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eGenerates a histogram with a fixed number of bins within a specified range (min, max).\u003c/p\u003e\n"],["\u003cp\u003eIgnores values outside the defined range and is suitable for per-pixel operations.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a Nx2 array containing bucket lower edges and counts (or cumulative counts).\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility to generate cumulative histograms using the 'cumulative' parameter.\u003c/p\u003e\n"],["\u003cp\u003eCan be easily applied per-pixel for detailed image analysis.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.fixedHistogram\n\nCreates a reducer that will compute a histogram of the inputs using a fixed number of fixed width bins. Values outside of the \\[min, max) range are ignored. The output is a Nx2 array of bucket lower edges and counts (or cumulative counts) and is suitable for use per-pixel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------|---------|\n| `ee.Reducer.fixedHistogram(min, max, steps, `*cumulative*`)` | Reducer |\n\n| Argument | Type | Details |\n|--------------|-------------------------|--------------------------------------------------|\n| `min` | Float | The lower (inclusive) bound of the first bucket. |\n| `max` | Float | The upper (exclusive) bound of the last bucket. |\n| `steps` | Integer | The number of buckets to use. |\n| `cumulative` | Boolean, default: false | When true, generates a cumulative histogram. |"]]