ee.Kernel.kirsch

यह 3x3 Kirsch's Compass Edge-Detection कर्नेल जनरेट करता है.

इस्तेमालरिटर्न
ee.Kernel.kirsch(magnitude, normalize)कर्नेल
आर्ग्यूमेंटटाइपविवरण
magnitudeफ़्लोट, डिफ़ॉल्ट: 1हर वैल्यू को इस रकम से स्केल करें.
normalizeबूलियन, डिफ़ॉल्ट वैल्यू: falseकर्नल वैल्यू को सामान्य करें, ताकि उनका योग 1 हो.

उदाहरण

कोड एडिटर (JavaScript)

print('A Kirsch compass kernel', ee.Kernel.kirsch());

/**
 * Output weights matrix
 *
 * [5, -3, -3]
 * [5,  0, -3]
 * [5, -3, -3]
 */

Python सेटअप करना

Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए, Python एनवायरमेंट पेज देखें.

import ee
import geemap.core as geemap

Colab (Python)

display('A Kirsch compass kernel:', ee.Kernel.kirsch())

#  Output weights matrix

#  [5, -3, -3]
#  [5,  0, -3]
#  [5, -3, -3]