Earth Engine は、共有コンピューティングリソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層を導入しています。非商用プロジェクトではデフォルトでコミュニティ
ティアが使用されますが、プロジェクトのティアはいつでも変更できます。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
形態学的オペレーション
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Earth Engine では、形態学的オペレーションを焦点オペレーションとして実装しています。具体的には、Image クラスの focalMax()、focalMin()、focalMedian()、focalMode() インスタンス メソッドです。(これらは、より一般的な reduceNeighborhood() のショートカットです。これは、数値出力を持つ任意の Reducer にカーネル内のピクセルを入力できます。地域の削減について詳しくは、こちらのページをご覧ください。形態学演算子は、侵食、拡大、開口、閉鎖などのオペレーションの実行に役立ちます。たとえば、開くオペレーションを実行するには、focalMin() の後に focalMax() を使用します。
コードエディタ(JavaScript)
// Load a Landsat 8 image, select the NIR band, threshold, display.
var image = ee.Image('LANDSAT/LC08/C02/T1_TOA/LC08_044034_20140318')
.select(4).gt(0.2);
Map.setCenter(-122.1899, 37.5010, 13);
Map.addLayer(image, {}, 'NIR threshold');
// Define a kernel.
var kernel = ee.Kernel.circle({radius: 1});
// Perform an erosion followed by a dilation, display.
var opened = image
.focalMin({kernel: kernel, iterations: 2})
.focalMax({kernel: kernel, iterations: 2});
Map.addLayer(opened, {}, 'opened');
上記の例では、カーネル引数が形態学演算子に指定されています。計算には、カーネルのゼロ以外の要素で覆われているピクセルを使用します。iterations 引数は、演算子を適用する回数を示します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["Earth Engine's `Image` class provides `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` for morphological operations like erosion, dilation, opening, and closing. These operations use a kernel to define the neighborhood of pixels. For example, the opening operation is achieved by applying `focalMin()` then `focalMax()`. A kernel argument defines the area for computation, and the iterations argument specifies the number of operator applications. The provided code demonstrates the opening operation on a Landsat 8 image using a circular kernel.\n"]]