Earth Engine 推出了
非商业配额层级,以保护共享计算资源并确保为所有人提供可靠的性能。非商业项目默认使用 Community
层级,但您可以随时更改项目的层级。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.Image.register
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将图片注册到参考图片,同时允许局部橡皮片变形。位移是在参考图片的 CRS 中计算的,比例由以下三个投影的最低分辨率决定:输入图片投影、参考图片投影和请求的投影。然后,将位移应用于输入图片,以将其注册到参考图片。
| 用法 | 返回 |
|---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | 图片 |
| 实参 | 类型 | 详细信息 |
|---|
this:image | 图片 | 要注册的图片。 |
referenceImage | 图片 | 要注册到的图片。 |
maxOffset | 浮点数 | 尝试对齐输入图片时允许的最大偏移量(以米为单位)。使用较小的值可以显著缩短计算时间,但该值仍必须足够大,以涵盖整个图片区域内的最大位移。 |
patchWidth | 浮点数,默认值:null | 用于检测图片偏移的补丁大小(以米为单位)。此值应设置得足够大,以捕获纹理,并且足够大,以便在补丁中忽略的对象较小。默认值为 null。如果未提供,系统将自动确定补丁大小。 |
stiffness | 浮点数,默认值:5 | 对解决方案强制执行刚度约束。有效值介于 [0,10] 范围内。在确定相邻网格点的位移时,刚度用于离群值拒绝。值越大,解决方案越接近刚性转换。值越小,注册期间允许的图片失真或变形就越多。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-20。
[null,null,["最后更新时间 (UTC):2026-04-20。"],[],["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"]]