公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.register
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将图像注册到参考图像,同时允许局部橡皮膜变形。位移是在参考图像的 CRS 中计算的,其缩放比例由以下三种投影的最低分辨率决定:输入图像投影、参考图像投影和请求的投影。然后,将位移应用于输入图像,以将其与参考图像配准。
用法 | 返回 |
---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要注册的图片。 |
referenceImage | 图片 | 要注册到的图片。 |
maxOffset | 浮点数 | 尝试对齐输入图片时允许的最大偏移量(以米为单位)。使用较小的值可以显著缩短计算时间,但该值仍必须足够大,才能覆盖整个图像区域内的最大位移。 |
patchWidth | 浮点数,默认值:null | 用于检测图片偏移的补丁大小(以米为单位)。此值应设置得足够大,以捕获纹理,并且足够大,以使可忽略的对象在补丁中较小。默认值为 null。如果未提供,系统将自动确定补丁大小。 |
stiffness | 浮点数,默认值:5 | 对解强制执行刚度约束。有效值介于 [0,10] 范围内。在确定相邻网格点处的位移时,刚度用于离群值拒绝。值越高,解决方案越接近刚性转换。值越低,在配准期间允许的图像变形或扭曲程度就越大。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]