ee.Image.unitScale
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इनपुट को इस तरह से स्केल करता है कि इनपुट वैल्यू की रेंज [low, high] से [0, 1] हो जाए. सीमा से बाहर की वैल्यू को शामिल नहीं किया जाता. यह एल्गोरिदम हमेशा फ़्लोटिंग पॉइंट पिक्सल जनरेट करता है.
इस्तेमाल | रिटर्न |
---|
Image.unitScale(low, high) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: input | इमेज | स्केल करने के लिए इमेज. |
low | फ़्लोट | 0 से मैप की गई वैल्यू. |
high | फ़्लोट | 1 से मैप की गई वैल्यू. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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. |"]]