tensorflow::ops::DecodeBmp
#include <image_ops.h>Mendekode frame pertama dari gambar berformat BMP menjadi tensor uint8.
Ringkasan
Attr channels menunjukkan jumlah saluran warna yang diinginkan untuk gambar yang didekode.
Nilai yang diterima adalah:
- 0: Gunakan jumlah saluran pada gambar yang dikodekan BMP.
- 3: menghasilkan gambar RGB.
- 4: menghasilkan gambar RGBA.
Argumen:
- Cakupan: Objek Cakupan
- Isi: 0-D. Gambar yang dikodekan BMP.
Mengembalikan:
-
Output: 3-D dengan bentuk[height, width, channels]. Urutan RGB
Konstruktor dan Destruktor | |
|---|---|
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 | Pengaturan 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 )