ee.Image.reduceResolution
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस विकल्प की मदद से, दिए गए रिड्यूसर का इस्तेमाल करके रीप्रोजेक्शन की सुविधा चालू की जाती है. इससे हर आउटपुट पिक्सल से जुड़े सभी इनपुट पिक्सल को एक साथ जोड़ा जा सकता है. अगर रिड्यूसर में एक ही इनपुट है, तो इसे कलेक्शन के हर बैंड पर अलग-अलग लागू किया जाएगा. अगर रिड्यूसर में एक से ज़्यादा इनपुट हैं, तो यह ज़रूरी है कि इनपुट इमेज में मौजूद बैंड की संख्या और रिड्यूसर में मौजूद इनपुट की संख्या एक जैसी हो.
रिड्यूसर के आउटपुट के नाम से, आउटपुट बैंड के नाम तय होते हैं: एक से ज़्यादा इनपुट वाले रिड्यूसर, आउटपुट के नामों का सीधे तौर पर इस्तेमाल करेंगे. एक इनपुट और एक आउटपुट वाले रिड्यूसर, इनपुट बैंड के नामों को बनाए रखेंगे. वहीं, एक इनपुट और कई आउटपुट वाले रिड्यूसर, आउटपुट के नाम के आगे इनपुट बैंड का नाम जोड़ देंगे. उदाहरण के लिए, '10_mean', '10_stdDev', '20_mean', '20_stdDev').
रिड्यूसर के इनपुट वेट, इनपुट मास्क और आउटपुट पिक्सल के उस हिस्से का प्रॉडक्ट होगा जिसे इनपुट पिक्सल कवर करता है.
इस्तेमाल | रिटर्न |
---|
Image.reduceResolution(reducer, bestEffort, maxPixels) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: image | इमेज | इनपुट इमेज. |
reducer | रेड्यूसर | पिक्सल को एक साथ जोड़ने के लिए, इस रिड्यूसर का इस्तेमाल किया जाता है. |
bestEffort | बूलियन, डिफ़ॉल्ट वैल्यू: false | अगर डिफ़ॉल्ट रिज़ॉल्यूशन पर इनपुट का इस्तेमाल करने के लिए बहुत ज़्यादा पिक्सल की ज़रूरत होती है, तो पिरामिड लेवल से पहले से कम किए गए इनपुट पिक्सल का इस्तेमाल करें. इससे ऑपरेशन पूरा हो पाएगा. |
maxPixels | पूर्णांक, डिफ़ॉल्ट: 64 | हर आउटपुट पिक्सल के लिए, इनपुट पिक्सल की ज़्यादा से ज़्यादा संख्या को एक साथ जोड़ा जा सकता है. इसे बहुत ज़्यादा पर सेट करने से, मेमोरी से जुड़ी समस्याएं होंगी. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eThis operation reprojects images using a reducer to combine input pixels for each output pixel, applying it per band or across bands based on reducer input.\u003c/p\u003e\n"],["\u003cp\u003eOutput band names are determined by the reducer's output names, sometimes preserving, prefixing, or directly using them.\u003c/p\u003e\n"],["\u003cp\u003eInput pixel weights are calculated using input mask and fractional output pixel coverage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereduceResolution\u003c/code\u003e method takes an image, reducer, and optional parameters for handling large operations, returning a reprojected image.\u003c/p\u003e\n"],["\u003cp\u003eOptional parameters \u003ccode\u003ebestEffort\u003c/code\u003e and \u003ccode\u003emaxPixels\u003c/code\u003e control memory usage and allow for processing large images by adjusting input resolution and pixel combination limits.\u003c/p\u003e\n"]]],[],null,["# ee.Image.reduceResolution\n\nEnables reprojection using the given reducer to combine all input pixels corresponding to each output pixel. If the reducer has a single input, it will be applied separately to each band of the collection; otherwise it must have the same number of inputs as the input image has bands.\n\n\u003cbr /\u003e\n\nThe reducer output names determine the names of the output bands: reducers with multiple inputs will use the output names directly, reducers with a single input and single output will preserve the input band names, and reducers with a single input and multiple outputs will prefix the output name with the input band name (e.g., '10_mean', '10_stdDev', '20_mean', '20_stdDev').\n\nReducer input weights will be the product of the input mask and the fraction of the output pixel covered by the input pixel.\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| Image.reduceResolution`(reducer, `*bestEffort* `, `*maxPixels*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The input image. |\n| `reducer` | Reducer | The reducer to apply to be used for combining pixels. |\n| `bestEffort` | Boolean, default: false | If using the input at its default resolution would require too many pixels, start with already-reduced input pixels from a pyramid level that allows the operation to succeed. |\n| `maxPixels` | Integer, default: 64 | The maximum number of input pixels to combine for each output pixel. Setting this too large will cause out-of-memory problems. |"]]