ee.Kernel.roberts

สร้างเคอร์เนลการตรวจหาขอบ Roberts ขนาด 2x2

การใช้งานการคืนสินค้า
ee.Kernel.roberts(magnitude, normalize)เคอร์เนล
อาร์กิวเมนต์ประเภทรายละเอียด
magnitudeFloat, ค่าเริ่มต้น: 1ปรับขนาดแต่ละค่าตามจำนวนนี้
normalizeบูลีน ค่าเริ่มต้น: falseทำให้ค่าเคอร์เนลอยู่ในค่าปกติที่ผลรวม 1

ตัวอย่าง

โปรแกรมแก้ไขโค้ด (JavaScript)

print('A Roberts kernel', ee.Kernel.roberts());

/**
 * Output weights matrix; center is position [1,1]
 *
 * [1,  0]
 * [0, -1]
 */

การตั้งค่า Python

ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้า สภาพแวดล้อม Python

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

print('A Roberts kernel:')
pprint(ee.Kernel.roberts().getInfo())

#  Output weights matrix; center is position [1,1]

#  [1,  0]
#  [0, -1]