コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦::デコードBmp
#include <image_ops.h>
BMP でエンコードされたイメージの最初のフレームを uint8 テンソルにデコードします。
まとめ
attr channels
デコードされたイメージに必要なカラー チャネルの数を示します。
受け入れられる値は次のとおりです。
- 0: BMP エンコードされたイメージのチャネル数を使用します。
- 3: RGB画像を出力します。
- 4: RGBA画像を出力します。
引数:
- スコープ:スコープオブジェクト
- 内容: 0-D。 BMP でエンコードされた画像。
戻り値:
-
Output
: 形状[height, width, channels]
を持つ 3-D。 RGB順序
パブリック属性
公共機能
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
チャンネル
Attrs Channels(
int64 x
)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],[],null,["# tensorflow::ops::DecodeBmp Class Reference\n\ntensorflow::ops::DecodeBmp\n==========================\n\n`#include \u003cimage_ops.h\u003e`\n\nDecode the first frame of a BMP-encoded image to a uint8 tensor.\n\nSummary\n-------\n\nThe attr `channels` indicates the desired number of color channels for the decoded image.\n\nAccepted values are:\n\n\n- 0: Use the number of channels in the BMP-encoded image.\n- 3: output an RGB image.\n- 4: output an RGBA image.\n\n\u003cbr /\u003e\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- contents: 0-D. The BMP-encoded image.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 3-D with shape `[height, width, channels]`. RGB order\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DecodeBmp](#classtensorflow_1_1ops_1_1_decode_bmp_1a855787daeff1be34d915da13f1558e54)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents)` ||\n| [DecodeBmp](#classtensorflow_1_1ops_1_1_decode_bmp_1a5d310550797ac800bdedfa5b0f952fb6)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents, const `[DecodeBmp::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs#structtensorflow_1_1ops_1_1_decode_bmp_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [image](#classtensorflow_1_1ops_1_1_decode_bmp_1aea897d04b869d2e3914701e2d67a8fe4) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_decode_bmp_1a04ba19d38081ad21624b98dfbe82f820) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_decode_bmp_1a3cd839e2c4b2c2fb8e5a1bd9a6a0601e)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_bmp_1a1797102fb2ef1291fef6911ab3dce187)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_bmp_1a1b3e3327c4b3957e8563a09b778d9b21)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [Channels](#classtensorflow_1_1ops_1_1_decode_bmp_1a5b486f770e8a02c96c14c50f0c791199)`(int64 x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs#structtensorflow_1_1ops_1_1_decode_bmp_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DecodeBmp::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs) | Optional attribute setters for [DecodeBmp](/versions/r2.3/api_docs/cc/class/tensorflow/ops/decode-bmp#classtensorflow_1_1ops_1_1_decode_bmp). |\n\nPublic attributes\n-----------------\n\n### image\n\n```text\n::tensorflow::Output image\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### DecodeBmp\n\n```gdscript\n DecodeBmp(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input contents\n)\n``` \n\n### DecodeBmp\n\n```gdscript\n DecodeBmp(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input contents,\n const DecodeBmp::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Channels\n\n```text\nAttrs Channels(\n int64 x\n)\n```"]]