tensorflow::ops::DecodeGif
#include <image_ops.h>Mendekode frame (atau beberapa frame) dari gambar yang dikodekan GIF ke tensor uint8.
Ringkasan
Gambar GIF dengan kompresi bingkai atau transparansi tidak didukung. Pada sistem Linux dan MacOS, konversikan GIF animasi dari terkompresi ke tidak terkompresi dengan menjalankan:
convert $src.gif -coalesce $dst.gif
Operasi ini juga mendukung dekode JPEG dan PNG, meskipun lebih bersih jika menggunakan tf.image.decode_image .
Argumen:
- Cakupan: Objek Cakupan
- Isi: 0-D. Gambar yang dikodekan GIF.
Mengembalikan:
-
Output: 4-D dengan bentuk[num_frames, height, width, 3]. Urutan saluran RGB.
Konstruktor dan Destruktor | |
|---|---|
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
DekodeGif
DecodeGif( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const