ee.Kernel.roberts

2x2 の Roberts エッジ検出カーネルを生成します。

用途戻り値
ee.Kernel.roberts(magnitude, normalize)カーネル
引数タイプ詳細
magnitude浮動小数点数、デフォルト: 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]