ee.Image.register
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
רישום תמונה לתמונת הפניה תוך מתן אפשרות לעיוותים מקומיים של גיליון גומי. ההזזות מחושבות במערכת ייחוס הקואורדינטות של תמונת הייחוס, בקנה מידה שנקבע לפי הרזולוציה הנמוכה ביותר של שלושת ההטלות הבאות: הטלת תמונת הקלט, הטלת תמונת הייחוס וההטלה המבוקשת. ההזזות האלה מוחלות על תמונת הקלט כדי לרשום אותה בהשוואה לתמונת הייחוס.
שימוש | החזרות |
---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: image | תמונה | התמונה להרשמה. |
referenceImage | תמונה | התמונה שאליה רוצים להירשם. |
maxOffset | מספר ממשי (float) | ההיסט המקסימלי שמותר כשמנסים ליישר את תמונות הקלט, במטרים. שימוש בערך קטן יותר יכול לקצר משמעותית את זמן החישוב, אבל הוא עדיין צריך להיות גדול מספיק כדי לכסות את ההעתקה הגדולה ביותר באזור התמונה כולו. |
patchWidth | מספר ממשי (float), ברירת מחדל: null | גודל הטלאי לזיהוי היסטים בתמונה, במטרים. הגודל צריך להיות מספיק גדול כדי לכלול את הטקסטורה, ומספיק גדול כדי שאובייקטים שאפשר להתעלם מהם יהיו קטנים בתוך התיקון. ברירת המחדל היא null. אם לא מציינים את גודל הטלאי, הוא ייקבע באופן אוטומטי. |
stiffness | מספר ממשי (float), ברירת מחדל: 5 | מחיל אילוץ קשיחות על הפתרון. הערכים החוקיים הם בטווח [0,10]. הקשיחות משמשת לדחיית חריגים כשקובעים את ההעתקות בנקודות סמוכות ברשת. ערכים גבוהים יותר מקרבים את הפתרון לטרנספורמציה נוקשה. ערכים נמוכים יותר מאפשרים יותר עיוותים או שינויים בתמונה במהלך הרישום. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eRegisters an image to a reference image using local, rubber sheet deformations, allowing for flexible alignment.\u003c/p\u003e\n"],["\u003cp\u003eDisplacements are calculated in the reference image's Coordinate Reference System (CRS) and scaled based on the lowest resolution among the input, reference, and requested projections.\u003c/p\u003e\n"],["\u003cp\u003eUsers can control the maximum allowed offset for alignment and optionally specify patch size and stiffness for fine-tuning the registration process.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a registered image aligned with the reference image based on the computed displacements.\u003c/p\u003e\n"]]],["The `register` function aligns an input image to a reference image, accommodating local deformations. It computes displacements in the reference image's coordinate system at the lowest resolution of the input, reference, and requested projections. Key parameters include `maxOffset` (maximum allowed displacement), `patchWidth` (patch size for offset detection), and `stiffness` (controls image warping). The function then applies the computed displacements to the input image, returning the registered image.\n"],null,["# ee.Image.register\n\nRegisters 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 then applied to the input image to register it with the reference.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------|---------|\n| Image.register`(referenceImage, maxOffset, `*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| `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 notprovided. |\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. |"]]