ee.Image.entropy
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
חישוב האנטרופיה של חלון לכל פס באמצעות ליבה שצוינה, שממורכזת בכל פיקסל קלט. האנטרופיה מחושבת לפי הנוסחה -sum(p * log2(p)), כאשר p הוא ההסתברות המנורמלת להתרחשות הערכים שנמצאו בכל חלון.
שימוש | החזרות |
---|
Image.entropy(kernel) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: image | תמונה | התמונה שעבורה יש לחשב את האנטרופיה. |
kernel | ליבה | גרעין שמציין את החלון שבו יתבצע החישוב. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eCalculates the entropy for each band of an image within a defined window around each pixel.\u003c/p\u003e\n"],["\u003cp\u003eEntropy is a measure of randomness or information content, calculated using a specific formula based on pixel value probabilities.\u003c/p\u003e\n"],["\u003cp\u003eA kernel determines the size and shape of the window used for entropy calculation, impacting the output image.\u003c/p\u003e\n"],["\u003cp\u003eThe result is a new image where each pixel represents the entropy of the corresponding window in the original image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.entropy\n\nComputes the windowed entropy for each band using the specified kernel centered on each input pixel. Entropy is computed as -sum(p \\* log2(p)), where p is the normalized probability of occurrence of the values encountered in each window.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| Image.entropy`(kernel)` | Image |\n\n| Argument | Type | Details |\n|---------------|--------|-----------------------------------------------------|\n| this: `image` | Image | The image for which to compute the entropy. |\n| `kernel` | Kernel | A kernel specifying the window in which to compute. |"]]