tensorflow::ops::EncodePng
#include <image_ops.h>Encoder une image au format PNG.
Résumé
image is a 3-D uint8 or uint16 Tensor of shape [height, width, channels] where channels is:
- 1 : pour les niveaux de gris.
- 2 : pour les niveaux de gris + alpha.
- 3 : pour RGB.
- 4 : pour RGBA.
The ZLIB compression level, compression , can be -1 for the PNG-encoder default or a value from 0 to 9. 9 is the highest compression level, generating the smallest output, but is slower.
Arguments :
- portée : un objet Scope
- image: 3-D with shape
[height, width, channels].
Attributs optionnels (voir Attrs ) :
- compression : Niveau de compression.
Retours :
-
Output: Image 0D encodée au format PNG.
Constructeurs et destructeurs | |
|---|---|
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs) |
attributs publics | |
|---|---|
contents | |
operation | |
fonctions publiques | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
fonctions statiques publiques | |
|---|---|
Compression (int64 x) | |
Structures | |
|---|---|
| tensorflow::ops::EncodePng::Attrs | Définiteurs d'attributs optionnels pour EncodePng . |
attributs publics
contenu
::tensorflow::Output contents
opération
Operation operation
fonctions publiques
EncodePng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
EncodePng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
nœud
::tensorflow::Node * node() const
opérateur::tensorflow::Entrée
operator::tensorflow::Input() const
opérateur::tensorflow::Sortie
operator::tensorflow::Output() const
fonctions statiques publiques
Compression
Attrs Compression( int64 x )