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]