Tensorflow :: ops :: EncodePng
#include <image_ops.h>
PNG-Codierung eines Bildes.
Zusammenfassung
image
ist ein 3-D- Tensor der Form [height, width, channels]
uint8 oder uint16 [height, width, channels]
wobei die channels
:
- 1: für Graustufen.
- 2: für Graustufen + Alpha.
- 3: für RGB.
- 4: für RGBA.
Die ZLIB-Komprimierungsstufe compression
kann für den PNG-Encoder-Standardwert -1 oder ein Wert von 0 bis 9 sein. 9 ist die höchste Komprimierungsstufe, die die kleinste Ausgabe erzeugt, jedoch langsamer ist.
Argumente:
- scope: Ein Scope- Objekt
- Bild: 3-D mit Form
[height, width, channels]
.
Optionale Attribute (siehe Attrs
):
- Komprimierung: Komprimierungsstufe.
Kehrt zurück:
-
Output
: 0-D. PNG-codiertes Bild.
Konstruktoren und Destruktoren | |
---|---|
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
contents | |
operation |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Compression (int64 x) |
Strukturen | |
---|---|
tensorflow :: ops :: EncodePng :: Attrs | Optionale Attributsetzer für EncodePng . |
Öffentliche Attribute
Inhalt
::tensorflow::Output contents
Operation
Operation operation
Öffentliche Funktionen
EncodePng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
EncodePng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Kompression
Attrs Compression( int64 x )