ee.Algorithms.TemporalSegmentation.StructuralChangeBreakpoints
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เรียกใช้การตรวจหาจุดหยุดที่คล้ายกับฟังก์ชัน strucchange::breakpoints ของ R
พิกเซลแต่ละพิกเซลจะได้รับการปรับให้เข้ากับโมเดลเชิงเส้น/ฮาร์มอนิกแบบเป็นช่วง ซึ่งมีรูปแบบดังนี้
Y = A + B * t + C * cos(2 * pi * season(t)) + D * sin(2 * pi * season(t)) + E * cos(4 * pi * season(t)) + F * sin(4 * pi * season(t)) + ...
ในสมการนี้ "t" คือเวลาเริ่มต้นของรูปภาพในรูปแบบที่ระบุโดย "dateFormat" และ "season(t)" คือปีเศษส่วนของเวลาเริ่มต้นนั้น (ดูรายละเอียดได้ที่คำอธิบายของ dateFormat) ลำดับสูงสุดของเทอมฮาร์มอนิกจะกำหนดโดย "seasonalModelOrder"
ผลลัพธ์คือรูปภาพที่มี 2 แถบ บวกกับ 2 แถบต่อแถบในอินพุต
tStart
, tEnd
: แต่ละรายการมีอาร์เรย์ 1 มิติ โดยมี 1 รายการต่อกลุ่มในการปรับเส้นตรงแบบทีละส่วน แต่ละรายการมีเวลาเริ่มต้นของรูปภาพแรกหรือรูปภาพสุดท้ายในกลุ่มนั้น โดยค่าเริ่มต้น ค่าที่นี่จะอยู่ในรูปแบบเศษส่วนของปีเพื่อให้ใช้งานกับสัมประสิทธิ์ได้ง่าย
coefs_BANDNAME
: จะมีแถบเอาต์พุตดังกล่าว 1 แถบต่อแถบอินพุต 1 แถบ แต่ละรายการจะมีอาร์เรย์ 2 มิติ โดยมี 1 แถวต่อกลุ่ม ค่าในแถวนั้นคือสัมประสิทธิ์ของการปรับเชิงเส้นสำหรับกลุ่มนั้นๆ ซึ่งก็คือค่าของ A, B, C, ... สำหรับกลุ่มนั้นๆ ตามที่อธิบายไว้ข้างต้น ค่าที่นี่จะได้รับผลกระทบจาก "dateFormat"
rmse_BANDNAME
: จะมีแถบเอาต์พุตดังกล่าว 1 แถบต่อแถบอินพุต 1 แถบ โดยจะเก็บอาร์เรย์ 1 มิติที่มี 1 รายการต่อกลุ่ม ค่าของแต่ละกลุ่มคือ RMSE สำหรับค่าที่เหลือของการปรับแบบเชิงเส้นสำหรับกลุ่มนั้น
การใช้งาน | การคืนสินค้า |
---|
ee.Algorithms.TemporalSegmentation.StructuralChangeBreakpoints(collection, breakpointBand, seasonalModelOrder, minSpacing, maxBreaks, dateFormat) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
collection | ImageCollection | คอลเล็กชันของรูปภาพที่จะตรวจหาเบรกพอยต์ |
breakpointBand | สตริง ค่าเริ่มต้น: null | ชื่อของแถบความถี่ที่จะใช้สำหรับการตรวจหาจุดพัก ไม่บังคับเฉพาะในกรณีที่รูปภาพมีแถบเดียวเท่านั้น |
seasonalModelOrder | จำนวนเต็ม ค่าเริ่มต้น: 3 | ลำดับของโมเดลฤดูกาลฮาร์มอนิก |
minSpacing | ลอย ค่าเริ่มต้น: 0.15 | ระยะห่างขั้นต่ำระหว่างจุดพัก หากค่าอยู่ระหว่าง 0 ถึง 1 (ไม่รวม) ระบบจะตีความค่านี้เป็นเศษส่วนของจำนวนรูปภาพในคอลเล็กชัน ไม่เช่นนั้น ระบบจะตีความว่าเป็นจำนวนตัวอย่าง |
maxBreaks | จำนวนเต็ม ค่าเริ่มต้น: 0 | จำนวนเบรกพอยต์สูงสุด |
dateFormat | จำนวนเต็ม ค่าเริ่มต้น: 1 | การแสดงเวลาที่จะใช้ในผลลัพธ์: 1 = ปีเศษ, 2 = เวลาของ Unix ในหน่วยมิลลิวินาที ซึ่งจะส่งผลต่อค่าในแถบ tStart และ tEnd รวมถึงค่า "t" ที่ใช้ในโมเดลฮาร์มอนิก เศษของปีที่ใช้ในที่นี้และในโมเดลดังกล่าวจะกำหนดเป็นเศษของจำนวนปีที่มี 365.25 วันนับตั้งแต่วันที่ 1 ม.ค. 1970 |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eDetects breakpoints in an image collection using a piecewise linear/harmonic model, similar to R's \u003ccode\u003estrucchange::breakpoints\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eOutputs an image with bands indicating breakpoint start/end times, model coefficients for each segment, and RMSE for each segment's fit.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the harmonic model's order, minimum breakpoint spacing, maximum number of breakpoints, and time representation format.\u003c/p\u003e\n"],["\u003cp\u003eUses a model that incorporates a linear trend and seasonal harmonics to fit pixel values over time.\u003c/p\u003e\n"],["\u003cp\u003eThe algorithm identifies the optimal breakpoints by minimizing the residual error of the piecewise model.\u003c/p\u003e\n"]]],["The function `StructuralChangeBreakpoints` detects breakpoints in an image collection, fitting each pixel with a piecewise linear/harmonic model. Input parameters include `collection`, `breakpointBand`, `seasonalModelOrder`, `minSpacing`, `maxBreaks`, and `dateFormat`. The output image contains `tStart` and `tEnd` bands, which hold segment start and end times. Additionally, there are `coefs_BANDNAME` bands, that contain linear fit coefficients and `rmse_BANDNAME` bands with the root-mean-square error for each segment.\n"],null,["# ee.Algorithms.TemporalSegmentation.StructuralChangeBreakpoints\n\nRuns breakpoint detection, similar to R's strucchange::breakpoints function.\n\n\u003cbr /\u003e\n\nEach pixel is fit by a piecewise linear/harmonic model, of the form\n\nY = A + B \\* t + C \\* cos(2 \\* pi \\* season(t)) + D \\* sin(2 \\* pi \\* season(t)) + E \\* cos(4 \\* pi \\* season(t)) + F \\* sin(4 \\* pi \\* season(t)) + ...\n\nIn this equation, 't' is the start time of the image in the format specified by 'dateFormat', and 'season(t)' is the fractional year of that start time (see the description of dateFormat for details). The maximum order of the harmonic terms is determined by 'seasonalModelOrder'.\n\nThe result is an image containing two bands, plus two bands per band in the input:\n\n`tStart`, `tEnd`: each of these holds a 1D array, with one entry per segment in the piecewise linear fit; each entry contains the start time of the first or last images in that segment. By default the values here are in fractional years, for easy use with the coefficients.\n\n`coefs_BANDNAME`: there will be one such output band per input band. Each of these holds a 2D array, with one row per segment. The values in that row are the coefficients of the linear fit for that segment - that is, the values of A, B, C, ... for that segment. As described above, the values here are affected by 'dateFormat'\n\n.`rmse_BANDNAME`: there will be one such output band per input band. This holds a 1D array, with one entry per segment. The value for each segment is the RMSE for the linear fit residuals for that segment.\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `ee.Algorithms.TemporalSegmentation.StructuralChangeBreakpoints(collection, `*breakpointBand* `, `*seasonalModelOrder* `, `*minSpacing* `, `*maxBreaks* `, `*dateFormat*`)` | Image |\n\n| Argument | Type | Details |\n|----------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `collection` | ImageCollection | Collection of images on which to detect breakpoints. |\n| `breakpointBand` | String, default: null | The name of the band to use for breakpoint detection. Optional only if the images have only a single band. |\n| `seasonalModelOrder` | Integer, default: 3 | The order of the harmonic seasonal model. |\n| `minSpacing` | Float, default: 0.15 | The minimum spacing between breakpoints. If this is between 0 and 1 (exclusive), it will be interpreted as a fraction of the number of images in the collection. Otherwise, it will be interpreted as a number of samples. |\n| `maxBreaks` | Integer, default: 0 | The maximum number of breakpoints. |\n| `dateFormat` | Integer, default: 1 | The time representation to use in the results: 1 = fractional years, 2 = unix time in milliseconds. This affects the values in the tStart and tEnd bands and the 't' values used in the harmonic model. The fractional years used here and in that model are defined as the fractional number of 365.25-day years since 1 Jan 1970. |"]]