Tensorflow :: ops :: DecodeGif
#include <image_ops.h>
Dekodieren Sie die Frames eines GIF-codierten Bildes in einen uint8-Tensor.
Zusammenfassung
GIF-Bilder mit Rahmen- oder Transparenzkomprimierung werden nicht unterstützt. Konvertieren Sie auf Linux- und MacOS-Systemen animierte GIFs von komprimiert in unkomprimiert, indem Sie Folgendes ausführen:
convert $src.gif -coalesce $dst.gif
Diese Operation unterstützt auch das Dekodieren von JPEGs und PNGs, obwohl die Verwendung von tf.image.decode_image
sauberer ist.
Argumente:
- scope: Ein Scope- Objekt
- Inhalt: 0-D. Das GIF-codierte Bild.
Kehrt zurück:
-
Output
: 4-D mit Form[num_frames, height, width, 3]
. RGB-Kanalreihenfolge.
Konstruktoren und Destruktoren | |
---|---|
DecodeGif (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) |
Öffentliche Attribute | |
---|---|
image | |
operation |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche Attribute
Bild
::tensorflow::Output image
Operation
Operation operation
Öffentliche Funktionen
DecodeGif
DecodeGif( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const