ee.Image.entropy
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."],[[["Calculates the entropy for each band of an image within a defined window around each pixel."],["Entropy is a measure of randomness or information content, calculated using a specific formula based on pixel value probabilities."],["A kernel determines the size and shape of the window used for entropy calculation, impacting the output image."],["The result is a new image where each pixel represents the entropy of the corresponding window in the original image."]]],[]]