公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。如果您在 2025 年 9 月 26 日之前未完成验证,您的访问权限可能会被暂停。
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。"],[],["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,[]]