ee.Kernel.compass

יוצרת ליבת זיהוי קצוות של מצפן Prewitt בגודל 3x3.

שימושהחזרות
ee.Kernel.compass(magnitude, normalize)ליבה
ארגומנטסוגפרטים
magnitudeמספר ממשי (float), ברירת מחדל: 1הכפלה של כל ערך בסכום הזה.
normalizeבוליאני, ברירת מחדל: falseמנרמלים את ערכי הליבה כך שהסכום שלהם יהיה 1.

דוגמאות

עורך הקוד (JavaScript)

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

/**
 * Output weights matrix
 *
 * [1,  1, -1]
 * [1, -2, -1]
 * [1,  1, -1]
 */

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

print('A Prewitt compass kernel:')
pprint(ee.Kernel.compass().getInfo())

# Output weights matrix

#  [1,  1, -1]
#  [1, -2, -1]
#  [1,  1, -1]