tensorflow :: ops :: DecodeGif
#include <image_ops.h>
Dekode bingkai gambar berenkode GIF ke tensor uint8.
Ringkasan
Gambar GIF dengan bingkai atau kompresi transparansi tidak didukung. Pada sistem Linux dan MacOS, ubah GIF animasi dari terkompresi menjadi tidak terkompresi dengan menjalankan:
convert $src.gif -coalesce $dst.gif
tf.image.decode_image
ini juga mendukung decoding JPEG dan PNG, meskipun lebih bersih menggunakan tf.image.decode_image
.
Argumen:
- scope: Objek Scope
- isi: 0-D. Gambar berkode GIF.
Pengembalian:
-
Output
: 4-D dengan bentuk[num_frames, height, width, 3]
. Urutan saluran RGB.
Pembuat dan Penghancur | |
---|---|
DecodeGif (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) |
Atribut publik | |
---|---|
image | |
operation |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Atribut publik
gambar
::tensorflow::Output image
operasi
Operation operation
Fungsi publik
DecodeGif
DecodeGif( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const