お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Image.reduceResolution
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定されたリデューサーを使用して再投影を有効にし、各出力ピクセルに対応するすべての入力ピクセルを結合します。リデューサーの入力が 1 つの場合、コレクションの各バンドに個別に適用されます。それ以外の場合は、入力画像と同じ数のバンドが必要です。
リデューサーの出力名によって、出力バンドの名前が決まります。複数の入力があるリデューサーは出力名を直接使用し、入力と出力が 1 つずつしかないリデューサーは入力バンド名を保持し、入力が 1 つで出力が複数あるリデューサーは出力名に入力バンド名を接頭辞として追加します(例: '10_mean', '10_stdDev', '20_mean', '20_stdDev')。
リデューサーの入力重みは、入力マスクと、入力ピクセルでカバーされる出力ピクセルの割合の積になります。
用途 | 戻り値 |
---|
Image.reduceResolution(reducer, bestEffort, maxPixels) | 画像 |
引数 | タイプ | 詳細 |
---|
これ: image | 画像 | 入力画像。 |
reducer | レデューサ | ピクセルを結合するために使用するレデューサ。 |
bestEffort | ブール値。デフォルト値は false です。 | 入力のデフォルトの解像度を使用するとピクセル数が多すぎる場合は、オペレーションを成功させることができるピラミッド レベルの入力ピクセルを減らした状態から始めます。 |
maxPixels | 整数。デフォルト: 64 | 各出力ピクセルに対して結合する入力ピクセルの最大数。この値を大きくしすぎると、メモリ不足の問題が発生します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 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. |"]]