aliran tensor:: operasi:: DekodeBmp
#include <image_ops.h>
Dekode frame pertama dari gambar yang disandikan BMP ke tensor uint8.
Ringkasan
channels
attr menunjukkan jumlah saluran warna yang diinginkan untuk gambar yang didekodekan.
Nilai yang diterima adalah:
- 0: Gunakan jumlah saluran dalam gambar yang dikodekan BMP.
- 3: menampilkan gambar RGB.
- 4: mengeluarkan gambar RGBA.
Argumen:
- ruang lingkup: Objek Lingkup
- isi: 0-D. Gambar yang dikodekan BMP.
Pengembalian:
-
Output
: 3-D dengan bentuk[height, width, channels]
. urutan RGB
Konstruktor dan Destructor | |
---|---|
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodeBmp::Attrs & attrs) |
Atribut publik | |
---|---|
image | |
operation |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Channels (int64 x) |
Struktur | |
---|---|
tensorflow:: ops:: DecodeBmp:: Attrs | Penyetel atribut opsional untuk DecodeBmp . |
Atribut publik
gambar
::tensorflow::Output image
operasi
Operation operation
Fungsi publik
DekodeBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
DekodeBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodeBmp::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Fungsi statis publik
saluran
Attrs Channels( int64 x )