お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
ee.Image.cast
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
画像のバンドの一部またはすべてを指定された型にキャストします。
用途 | 戻り値 |
---|
Image.cast(bandTypes, bandOrder) | 画像 |
引数 | タイプ | 詳細 |
---|
これ: image | 画像 | キャストする画像。 |
bandTypes | Dictionary | バンド名からバンドタイプへのディクショナリ。型には PixelTypes または文字列を指定できます。有効な文字列は、'int8'、'int16'、'int32'、'int64'、'uint8'、'uint16'、'uint32'、'byte'、'short'、'int'、'long'、'float'、'double' です。bandTypes に入力画像にまだ含まれていないバンドが含まれている場合、それらは透明なバンドとして画像に追加されます。bandOrder も指定されていない場合、新しい帯域はアルファベット順に追加されます。 |
bandOrder | リスト、デフォルト: null | 結果のバンドの順序を指定するリスト。指定する場合は、結果の周波数帯の完全なリストと一致する必要があります。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],["The `Image.cast` function modifies an image by changing the data type of its bands. It takes a dictionary, `bandTypes`, mapping band names to new data types (PixelTypes or strings like 'int8', 'float'). If a specified band is not present in the original image, a transparent band of that type is added. An optional `bandOrder` list defines the sequence of the resulting bands. The function returns the modified `Image`.\n"]]