お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Image.directionalDistanceTransform
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ソース内のゼロ値の各ピクセルについて、指定された方向にあるゼロ以外の最も近いピクセルまでの距離を取得します。
「距離」という浮動小数点距離の帯域を返します。
用途 | 戻り値 |
---|
Image.directionalDistanceTransform(angle, maxDistance, labelBand) | 画像 |
引数 | タイプ | 詳細 |
---|
これ: source | 画像 | ソース画像。 |
angle | 浮動小数点数 | ゼロ以外のピクセルを検索する角度(度単位)。 |
maxDistance | Integer | 検索する最大距離(ピクセル単位)。 |
labelBand | 文字列、デフォルト: null | 指定されている場合、マルチバンド入力が許可され、このバンドのみが検索に使用されます。他のすべてのバンドが返され、ラベルバンドで検索されたゼロ以外のピクセルにあるバンドごとの値が入力されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],["The `directionalDistanceTransform` function calculates the distance from each zero-valued pixel in a source image to the nearest non-zero pixel along a specified angle. It returns an image containing these floating-point distances. The search is performed up to a maximum distance. Optionally, a specific band can be defined as the target for the search, while preserving the other bands with the values found at searched pixel locations.\n"],null,[]]