公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.unitScale
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
缩放输入,使输入值范围 [low, high] 变为 [0, 1]。范围外的值不会被强制改为限值。此算法始终会生成浮点像素。
用法 | 返回 |
---|
Image.unitScale(low, high) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:input | 图片 | 要缩放的图片。 |
low | 浮点数 | 映射到 0 的值。 |
high | 浮点数 | 映射到 1 的值。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],["The `unitScale` method scales an image's pixel values. It maps the input range between `low` and `high` to the output range of 0 to 1. The method takes the input image, `low` (the value that becomes 0), and `high` (the value that becomes 1) as arguments. Values outside the specified range are not restricted. The result of the process is a floating-point image.\n"],null,[]]