ee.Kernel.roberts

Tạo một hạt nhân phát hiện cạnh Roberts 2x2.

Cách sử dụngGiá trị trả về
ee.Kernel.roberts(magnitude, normalize)Kernel
Đối sốLoạiThông tin chi tiết
magnitudeSố thực, mặc định: 1Điều chỉnh tỷ lệ mỗi giá trị theo số tiền này.
normalizeBoolean, mặc định: falseChuẩn hoá các giá trị của nhân để có tổng bằng 1.

Ví dụ

Trình soạn thảo mã (JavaScript)

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

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

Thiết lập Python

Hãy xem trang Môi trường Python để biết thông tin về API Python và cách sử dụng geemap cho quá trình phát triển tương tác.

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]