إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Image.neighborhoodToBands
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تحويل المنطقة المجاورة لوحدة البكسل إلى مجموعة من النطاقات يتم تحديد الحي باستخدام Kernel، ويتم استخدام قيم Kernel غير الصفرية فقط. ويتم تجاهل أوزان النواة في ما عدا ذلك.
ينتج كل نطاق إدخال x * y من نطاقات الإخراج. يتم تسمية كل نطاق إخراج باسم input_x_y، حيث يشير x وy إلى موقع البكسل في النواة. على سبيل المثال، تؤدي نواة 3x3 تعمل على صورة بنطاقَين إلى إنتاج 18 نطاقًا للناتج.
الاستخدام | المرتجعات |
---|
Image.neighborhoodToBands(kernel) | صورة |
الوسيطة | النوع | التفاصيل |
---|
هذا: image | صورة | الصورة التي سيتم استخراج وحدات البكسل منها |
kernel | Kernel | النواة التي تحدد الحي يتم تجاهل القيم التي تبلغ وزنها صفرًا. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eTransforms image pixels by considering their neighboring pixels defined by a kernel.\u003c/p\u003e\n"],["\u003cp\u003eGenerates multiple output bands for each input band, representing the pixel values within the kernel's neighborhood.\u003c/p\u003e\n"],["\u003cp\u003eThe output bands are named based on the input band and the pixel's position in the kernel.\u003c/p\u003e\n"],["\u003cp\u003eKernel weights are only used to define the neighborhood, their actual values are not used in the calculation.\u003c/p\u003e\n"]]],[],null,["# ee.Image.neighborhoodToBands\n\nTurns the neighborhood of a pixel into a set of bands. The neighborhood is specified using a Kernel and only non-zero-weight kernel values are used. The weights of the kernel is otherwise ignored.\n\n\u003cbr /\u003e\n\nEach input band produces x \\* y output bands. Each output band is named 'input_x_y' where x and y indicate the pixel's location in the kernel. For example, a 3x3 kernel operating on a 2-band image produces 18 output bands.\n\n| Usage | Returns |\n|-------------------------------------|---------|\n| Image.neighborhoodToBands`(kernel)` | Image |\n\n| Argument | Type | Details |\n|---------------|--------|-------------------------------------------------------------------------|\n| this: `image` | Image | The image to get pixels from. |\n| `kernel` | Kernel | The kernel specifying the neighborhood. Zero-weight values are ignored. |"]]