إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Image.connectedPixelCount
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إنشاء صورة يحتوي كل بكسل فيها على عدد العناصر المجاورة المتصلة بـ 4 أو 8 عناصر (بما في ذلك البكسل نفسه)
الاستخدام | المرتجعات |
---|
Image.connectedPixelCount(maxSize, eightConnected) | صورة |
الوسيطة | النوع | التفاصيل |
---|
هذا: input | صورة | الصورة المدخَلة |
maxSize | عدد صحيح، القيمة التلقائية: 100 | الحد الأقصى لحجم الحي بالبكسل. |
eightConnected | قيمة منطقية، القيمة التلقائية: true | تحديد ما إذا كان سيتم استخدام قواعد الاتصال الثماني بدلاً من قواعد الاتصال الرباعي |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis function creates an image where each pixel's value represents the number of neighboring pixels within a specified range, including itself.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the neighborhood size using the \u003ccode\u003emaxSize\u003c/code\u003e parameter, with a default value of 100 pixels.\u003c/p\u003e\n"],["\u003cp\u003eThe connectivity type can be controlled with the \u003ccode\u003eeightConnected\u003c/code\u003e parameter, allowing for either 4-connected or 8-connected neighborhood calculations, defaulting to 8-connected.\u003c/p\u003e\n"]]],[],null,["# ee.Image.connectedPixelCount\n\nGenerate an image where each pixel contains the number of 4- or 8-connected neighbors (including itself).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------|---------|\n| Image.connectedPixelCount`(`*maxSize* `, `*eightConnected*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|------------------------|------------------------------------------------------|\n| this: `input` | Image | The input image. |\n| `maxSize` | Integer, default: 100 | The maximum size of the neighborhood in pixels. |\n| `eightConnected` | Boolean, default: true | Whether to use 8-connected rather 4-connected rules. |"]]