テンソルフロー::作戦::デコードGIF

#include <image_ops.h>

GIF エンコードされた画像のフレームを uint8 テンソルにデコードします。

まとめ

フレームまたは透明度圧縮を使用した GIF 画像はサポートされていません。 Linux および MacOS システムでは、

convert $src.gif -coalesce $dst.gif
を実行して、アニメーション GIF を圧縮から非圧縮に変換します。

この操作は JPEG と PNG のデコードもサポートしていますが、 tf.image.decode_imageを使用する方がよりクリーンです。

引数:

  • スコープ:スコープオブジェクト
  • 内容: 0-D。 GIF エンコードされた画像。

戻り値:

  • Output : 形状[num_frames, height, width, 3]の 4-D。 RGB チャンネルの順序。

コンストラクターとデストラクター

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

パブリック属性

image
operation

公共機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック属性

画像

::tensorflow::Output image

手術

Operation operation

公共機能

デコードGIF

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

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const