ee.Image.entropy
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Calcule l'entropie fenêtrée pour chaque bande à l'aide du noyau spécifié centré sur chaque pixel d'entrée. L'entropie est calculée comme suit : -sum(p * log2(p)), où p correspond à la probabilité normalisée d'occurrence des valeurs rencontrées dans chaque fenêtre.
Utilisation | Renvoie |
---|
Image.entropy(kernel) | Image |
Argument | Type | Détails |
---|
ceci : image | Image | Image pour laquelle calculer l'entropie. |
kernel | Noyau | Noyau spécifiant la fenêtre dans laquelle effectuer le calcul. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 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. |"]]