tensorflow :: ops :: DecodeGif
#include <image_ops.h>
GIF kodlu bir görüntünün karelerinin kodunu bir uint8 tensörü olarak çözün.
Özet
Çerçeve veya şeffaflık sıkıştırmalı GIF resimleri desteklenmez. Linux ve MacOS sistemlerinde, şu komutu çalıştırarak animasyonlu GIF'leri sıkıştırılmıştan sıkıştırılmamışa dönüştürün:
convert $src.gif -coalesce $dst.gif
Bu işlem, JPEG'lerin ve tf.image.decode_image
kodlarının çözülmesini de destekler, ancak tf.image.decode_image
kullanmak daha tf.image.decode_image
.
Argümanlar:
- kapsam: Bir Scope nesnesi
- içerik: 0-D. GIF kodlu görüntü.
İadeler:
-
Output
:[num_frames, height, width, 3]
şeklinde 4-D. RGB kanal sırası.
Yapıcılar ve Yıkıcılar | |
---|---|
DecodeGif (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) |
Genel özellikler | |
---|---|
image | |
operation |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel özellikler
görüntü
::tensorflow::Output image
operasyon
Operation operation
Kamusal işlevler
DecodeGif
DecodeGif( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const