Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Image.unitScale
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menskalakan input sehingga rentang nilai input [rendah, tinggi] menjadi [0, 1]. Nilai di luar rentang TIDAK dibulatkan. Algoritma ini selalu menghasilkan piksel floating point.
Penggunaan | Hasil |
---|
Image.unitScale(low, high) | Gambar |
Argumen | Jenis | Detail |
---|
ini: input | Gambar | Gambar yang akan diskalakan. |
low | Float | Nilai dipetakan ke 0. |
high | Float | Nilai dipetakan ke 1. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eScales image pixel values to a range of 0 to 1, mapping input value \u003ccode\u003elow\u003c/code\u003e to 0 and \u003ccode\u003ehigh\u003c/code\u003e to 1.\u003c/p\u003e\n"],["\u003cp\u003eValues outside the specified \u003ccode\u003elow\u003c/code\u003e and \u003ccode\u003ehigh\u003c/code\u003e range are not clamped and will be scaled accordingly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eunitScale\u003c/code\u003e algorithm always outputs an image with floating point pixel values.\u003c/p\u003e\n"],["\u003cp\u003eThe original image is used as input and a new scaled image is returned.\u003c/p\u003e\n"]]],["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,["# ee.Image.unitScale\n\nScales the input so that the range of input values \\[low, high\\] becomes \\[0, 1\\]. Values outside the range are NOT clamped. This algorithm always produces floating point pixels.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|---------|\n| Image.unitScale`(low, high)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|------------------------|\n| this: `input` | Image | The image to scale. |\n| `low` | Float | The value mapped to 0. |\n| `high` | Float | The value mapped to 1. |"]]