ee.Image.entropy
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
آنتروپی پنجرهدار را برای هر باند با استفاده از هسته مشخص شده در مرکز هر پیکسل ورودی محاسبه میکند. آنتروپی به صورت -sum(p * log2(p)) محاسبه میشود، که در آن p احتمال عادی وقوع مقادیری است که در هر پنجره با آن مواجه میشویم.
استفاده | برمی گرداند | Image. entropy (kernel) | تصویر |
استدلال | تایپ کنید | جزئیات | این: image | تصویر | تصویری که برای محاسبه آنتروپی. |
kernel | هسته | هسته ای که پنجره ای را برای محاسبه مشخص می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]