Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.entropy
Stay organized with collections
Save and categorize content based on your preferences.
Computes 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.
Usage | Returns | Image.entropy(kernel) | Image |
Argument | Type | Details | this: image | Image | The image for which to compute the entropy. |
kernel | Kernel | A kernel specifying the window in which to compute. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 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. |"]]