ב-Earth Engine הוספנו
רמות מכסת שימוש לא מסחרי כדי להגן על משאבי מחשוב משותפים ולספק ביצועים מהימנים לכולם. בפרויקטים לא מסחריים נעשה שימוש במסלול Community כברירת מחדל, אבל אפשר לשנות את המסלול של הפרויקט בכל שלב.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
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)
display('A Prewitt compass kernel:', ee.Kernel.compass())
# Output weights matrix
# [1, 1, -1]
# [1, -2, -1]
# [1, 1, -1]
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-10-30 (שעון UTC).
[null,null,["עדכון אחרון: 2025-10-30 (שעון UTC)."],[],["The core function is `ee.Kernel.compass()`, which creates a 3x3 Prewitt compass edge-detection kernel. The function accepts two arguments: `magnitude` (a float to scale values, defaulting to 1) and `normalize` (a boolean to normalize the kernel values to sum to 1, defaulting to false). The output is a kernel with weights represented as `[[1, 1, -1], [1, -2, -1], [1, 1, -1]]`.\n"]]