Earth Engine ได้เปิดตัว
ระดับโควต้าที่ไม่ใช่เชิงพาณิชย์เพื่อปกป้องทรัพยากรการประมวลผลที่ใช้ร่วมกันและรับประกันประสิทธิภาพที่เชื่อถือได้สำหรับทุกคน โปรเจ็กต์ที่ไม่ใช่เชิงพาณิชย์จะใช้ระดับชุมชนโดยค่าเริ่มต้น แต่คุณสามารถเปลี่ยนระดับของโปรเจ็กต์ได้ทุกเมื่อ
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
การดำเนินการแบบมอร์ฟอลوجิก
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Earth Engine ใช้การดำเนินการทางสัณฐานวิทยาเป็นการดำเนินการโฟกัส โดยเฉพาะเมธอดอินสแตนซ์ focalMax(), focalMin(), focalMedian() และ focalMode() ในคลาส Image (แป้นพิมพ์ลัดเหล่านี้เป็นแป้นพิมพ์ลัดสำหรับ reduceNeighborhood() ทั่วไปมากขึ้น ซึ่งสามารถป้อนพิกเซลในเคอร์เนลไปยังตัวลดที่มีเอาต์พุตที่เป็นตัวเลข ดูข้อมูลเพิ่มเติมเกี่ยวกับการลดจำนวนย่านได้ในหน้านี้) โอเปอเรเตอร์เชิงมอร์ฟอลโลจีมีประโยชน์สำหรับการดำเนินการต่างๆ เช่น การกัดกร่อน การขยาย การปิด และการเปิด เช่น หากต้องการทำการดำเนินการเปิด ให้ใช้ focalMin() ตามด้วย focalMax()
เครื่องมือแก้ไขโค้ด (JavaScript)
// Load a Landsat 8 image, select the NIR band, threshold, display.
var image = ee.Image('LANDSAT/LC08/C02/T1_TOA/LC08_044034_20140318')
.select(4).gt(0.2);
Map.setCenter(-122.1899, 37.5010, 13);
Map.addLayer(image, {}, 'NIR threshold');
// Define a kernel.
var kernel = ee.Kernel.circle({radius: 1});
// Perform an erosion followed by a dilation, display.
var opened = image
.focalMin({kernel: kernel, iterations: 2})
.focalMax({kernel: kernel, iterations: 2});
Map.addLayer(opened, {}, 'opened');
โปรดทราบว่าในตัวอย่างนี้ จะมีการระบุอาร์กิวเมนต์เคอร์เนลให้กับโอเปอเรเตอร์เชิงมอร์ฟอลโลจี ระบบจะใช้พิกเซลที่องค์ประกอบของ Kernel ไม่ใช่ 0 ในการคำนวณ อาร์กิวเมนต์ "จำนวนรอบ" ระบุจํานวนครั้งที่จะใช้โอเปอเรเตอร์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],["Earth Engine's `Image` class provides `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` for morphological operations like erosion, dilation, opening, and closing. These operations use a kernel to define the neighborhood of pixels. For example, the opening operation is achieved by applying `focalMin()` then `focalMax()`. A kernel argument defines the area for computation, and the iterations argument specifies the number of operator applications. The provided code demonstrates the opening operation on a Landsat 8 image using a circular kernel.\n"]]