tensorflow:: ops:: DecodeGif
#include <image_ops.h>GIFエンコードされた画像のフレームをuint8テンソルにデコードします。
まとめ
フレーム圧縮または透明度圧縮を含むGIF画像はサポートされていません。LinuxおよびmacOSシステムでは、アニメーションGIFを圧縮から非圧縮に変換するには、次のコマンドを実行します。
convert $src.gif -coalesce $dst.gif
この操作は JPEG と PNG のデコードもサポートしていますが、 tf.image.decode_image使用する方がより簡潔です。
議論:
- スコープ:スコープオブジェクト
- 内容:0次元。GIFエンコードされた画像。
返品:
-
Output:形状[num_frames, height, width, 3]の4次元データ。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
公的機能
DecodeGif
DecodeGif( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const