公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.entropy
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用以每个输入像素为中心的指定内核,计算每个波段的窗口化熵。熵的计算公式为 -sum(p * log2(p)),其中 p 是每个窗口中遇到的值的归一化出现概率。
用法 | 返回 |
---|
Image.entropy(kernel) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要计算熵的图片。 |
kernel | 内核 | 用于指定计算窗口的内核。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]