flux tenseur :: opérations :: DécoderBmp
#include <image_ops.h>
Décodez la première image d'une image codée en BMP en un tenseur uint8.
Sommaire
L'attribut channels
indique le nombre souhaité de canaux de couleur pour l'image décodée.
Les valeurs acceptées sont :
- 0 : utilise le nombre de canaux dans l'image encodée en BMP.
- 3 : produit une image RVB.
- 4 : sortie d'une image RGBA.
Arguments:
- scope : un objet Scope
- contenu : 0-D. L'image encodée en BMP.
Retour:
-
Output
: 3-D avec forme[height, width, channels]
. Ordre RVB
Constructeurs et destructeurs | |
---|---|
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodeBmp::Attrs & attrs) |
Attributs publics | |
---|---|
image | |
operation |
Fonctions publiques | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fonctions statiques publiques | |
---|---|
Channels (int64 x) |
Structures | |
---|---|
tensorflow :: ops :: DecodeBmp :: Attrs | Setters d'attributs facultatifs pour DecodeBmp . |
Attributs publics
image
::tensorflow::Output image
opération
Operation operation
Fonctions publiques
DécoderBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
DécoderBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodeBmp::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
Canaux
Attrs Channels( int64 x )