お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Image.focalMedian
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
名前付きまたはカスタム カーネルを使用して、画像の各バンドに形態学的削減フィルタを適用します。
用途 | 戻り値 |
---|
Image.focalMedian(radius, kernelType, units, iterations, kernel) | 画像 |
引数 | タイプ | 詳細 |
---|
これ: image | 画像 | オペレーションを適用する画像。 |
radius | 浮動小数点数、デフォルト: 1.5 | 使用するカーネルの半径。 |
kernelType | 文字列、デフォルト: "circle" | 使用するカーネルのタイプ。オプションには、'circle'、'square'、'cross'、'plus'、'octagon'、'diamond' があります。 |
units | 文字列、デフォルト: 「pixels」 | カーネルが指定されていない場合、カーネルがメートル単位かピクセル単位かを決定します。 |
iterations | 整数。デフォルト: 1 | 指定されたカーネルを適用する回数。 |
kernel | カーネル、デフォルト: null | カスタム カーネル。使用される場合、kernelType と radius は無視されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eApplies a morphological reducer filter to each band of an image using a kernel.\u003c/p\u003e\n"],["\u003cp\u003eOffers options for kernel type including circle, square, cross, plus, octagon, and diamond, or allows for a custom kernel.\u003c/p\u003e\n"],["\u003cp\u003eThe radius of the kernel, units (pixels or meters), and number of iterations can be specified.\u003c/p\u003e\n"],["\u003cp\u003eThe filter is applied using the \u003ccode\u003efocalMedian()\u003c/code\u003e function, accepting arguments for radius, kernel type, units, iterations, and a custom kernel if desired.\u003c/p\u003e\n"]]],[],null,["# ee.Image.focalMedian\n\nApplies a morphological reducer() filter to each band of an image using a named or custom kernel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------|---------|\n| Image.focalMedian`(`*radius* `, `*kernelType* `, `*units* `, `*iterations* `, `*kernel*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------------------------|------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to which to apply the operations. |\n| `radius` | Float, default: 1.5 | The radius of the kernel to use. |\n| `kernelType` | String, default: \"circle\" | The type of kernel to use. Options include: 'circle', 'square', 'cross', 'plus', 'octagon', and 'diamond'. |\n| `units` | String, default: \"pixels\" | If a kernel is not specified, this determines whether the kernel is in meters or pixels. |\n| `iterations` | Integer, default: 1 | The number of times to apply the given kernel. |\n| `kernel` | Kernel, default: null | A custom kernel. If used, kernelType and radius are ignored. |"]]