إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Image.displacement
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تحدّد هذه السمة عمليات الإزاحة المطلوبة لتسجيل صورة في صورة مرجعية مع السماح بتشويهات محلية ومرنة. يتم احتساب الإزاحات في نظام الإحداثيات المرجعي للصورة المرجعية، وذلك بمقياس تحدده أدنى دقة من عمليات العرض الثلاث التالية: عرض الصورة المدخلة، وعرض الصورة المرجعية، والعرض المطلوب. يتم بعد ذلك تحويل عمليات الإزاحة إلى الإسقاط الذي يحدّده المستخدم للإخراج.
الاستخدام | المرتجعات |
---|
Image.displacement(referenceImage, maxOffset, projection, patchWidth, stiffness) | صورة |
الوسيطة | النوع | التفاصيل |
---|
هذا: image | صورة | الصورة المطلوب تسجيلها |
referenceImage | صورة | الصورة المطلوب تسجيلها |
maxOffset | عدد عائم | الحد الأقصى للإزاحة المسموح بها عند محاولة محاذاة الصور المُدخَلة، بالمتر يمكن أن يؤدي استخدام قيمة أصغر إلى تقليل وقت الحساب بشكل كبير، ولكن يجب أن تظل كبيرة بما يكفي لتغطية أكبر إزاحة ضمن منطقة الصورة بأكملها. |
projection | التوقّع، القيمة التلقائية: null | نظام الإسقاط الذي سيتم فيه إخراج قيم الإزاحة. القيمة التلقائية هي إسقاط النطاق الأول للصورة المرجعية. |
patchWidth | العدد العائم، القيمة التلقائية: null | حجم الرقعة المستخدَمة لرصد إزاحات الصور، بالمتر يجب ضبط هذه القيمة على حجم كبير بما يكفي لالتقاط الزخرفة، بالإضافة إلى حجم كبير بما يكفي لجعل العناصر التي يمكن تجاهلها صغيرة داخل الرقعة. القيمة التلقائية هي null. سيتم تحديد حجم حزمة التعديل تلقائيًا في حال عدم توفيره. |
stiffness | Float، القيمة التلقائية: 5 | يفرض قيودًا على صلابة الحل. تتراوح القيم الصالحة بين 0 و10. يتم استخدام الصلابة لرفض القيم الشاذة عند تحديد الإزاحات في نقاط الشبكة المجاورة. تؤدي القيم الأعلى إلى تحويل الحلّ إلى حلّ ثابت. تسمح القيم المنخفضة بتشويه الصورة أو تحريفها بشكل أكبر أثناء التسجيل. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis method calculates the displacements needed to align an image with a reference image, allowing for localized, flexible deformations.\u003c/p\u003e\n"],["\u003cp\u003eDisplacements are determined in the reference image's coordinate system and at a resolution based on the input, reference, and requested projections.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a maximum offset for alignment, a projection for outputting displacements, a patch size for offset detection, and a stiffness parameter to control deformation.\u003c/p\u003e\n"],["\u003cp\u003eThe output is an image containing the calculated displacement values, which can be used to warp or transform the input image to match the reference image.\u003c/p\u003e\n"],["\u003cp\u003eUsing a smaller \u003ccode\u003emaxOffset\u003c/code\u003e value can speed up computation but must be sufficient to cover the largest displacement within the image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.displacement\n\nDetermines displacements required to register an image to a reference image while allowing local, rubber sheet deformations. Displacements are computed in the CRS of the reference image, at a scale dictated by the lowest resolution of the following three projections: input image projection, reference image projection, and requested projection. The displacements are then transformed into the user-specified projection for output.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------------|---------|\n| Image.displacement`(referenceImage, maxOffset, `*projection* `, `*patchWidth* `, `*stiffness*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to register. |\n| `referenceImage` | Image | The image to register to. |\n| `maxOffset` | Float | The maximum offset allowed when attempting to align the input images, in meters. Using a smaller value can reduce computation time significantly, but it must still be large enough to cover the greatest displacement within the entire image region. |\n| `projection` | Projection, default: null | The projection in which to output displacement values. The default is the projection of the first band of the reference image. |\n| `patchWidth` | Float, default: null | Patch size for detecting image offsets, in meters. This should be set large enough to capture texture, as well as large enough that ignorable objects are small within the patch. Default is null. Patch size will be determined automatically if not provided. |\n| `stiffness` | Float, default: 5 | Enforces a stiffness constraint on the solution. Valid values are in the range \\[0,10\\]. The stiffness is used for outlier rejection when determining displacements at adjacent grid points. Higher values move the solution towards a rigid transformation. Lower values allow more distortion or warping of the image during registration. |"]]