tensorflow::ops::DecodeGif

#include <image_ops.h>

GIF formatında kodlanmış bir görüntünün karelerini uint8 tensörüne dönüştürün.

Özet

Çerçeve veya saydamlık sıkıştırması içeren GIF resimleri desteklenmemektedir. Linux ve MacOS sistemlerinde, animasyonlu GIF'leri sıkıştırılmış halden sıkıştırılmamış hale dönüştürmek için şu komutu çalıştırın:

convert $src.gif -coalesce $dst.gif

Bu işlem JPEG ve PNG dosyalarının kod çözmesini de destekler, ancak tf.io.decode_image kullanmak daha temiz bir yöntemdir.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • İçerik: 0-D. GIF formatında kodlanmış görüntü.

İadeler:

  • Output : [num_frames, height, width, 3] şeklinde 4 boyutlu. 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

resim

::tensorflow::Output image

operasyon

Operation operation

Kamusal işlevler

DecodeGif

 DecodeGif(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const