Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: DekodowanieBmp
#include <image_ops.h>
Dekoduj pierwszą klatkę obrazu zakodowanego w formacie BMP do tensora uint8.
Streszczenie
channels
attr wskazują żądaną liczbę kanałów kolorów dla zdekodowanego obrazu.
Akceptowane wartości to:
- 0: Użyj liczby kanałów w obrazie zakodowanym w formacie BMP.
- 3: wyprowadź obraz RGB.
- 4: wyprowadź obraz RGBA.
Argumenty:
- zakres: Obiekt Scope
- zawartość: 0-D. Obraz zakodowany w formacie BMP.
Zwroty:
-
Output
: 3-D z kształtem [height, width, channels]
. Kolejność RGB
Publiczne funkcje statyczne |
---|
Channels (int64 x) | |
Atrybuty publiczne
Funkcje publiczne
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Kanały
Attrs Channels(
int64 x
)
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-27 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.2/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.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents, const `[DecodeBmp::Attrs](/versions/r2.2/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.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_decode_bmp_1a04ba19d38081ad21624b98dfbe82f820) | [Operation](/versions/r2.2/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.2/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.2/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs) | Optional attribute setters for [DecodeBmp](/versions/r2.2/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```"]]