tensoreflusso:: ops:: DecodePng
#include <image_ops.h>Decodifica un'immagine con codifica PNG in un tensore uint8 o uint16.
Riepilogo
I channels attr indicano il numero desiderato di canali di colore per l'immagine decodificata.
I valori accettati sono:
- 0: utilizza il numero di canali nell'immagine con codifica PNG.
- 1: genera un'immagine in scala di grigi.
- 3: emette un'immagine RGB.
- 4: emette un'immagine RGBA.
Se necessario, l'immagine con codifica PNG viene trasformata per corrispondere al numero richiesto di canali di colore.
Questa operazione supporta anche la decodifica di JPEG e GIF non animate poiché l'interfaccia è la stessa, sebbene sia più pulito utilizzare tf.image.decode_image .
Argomenti:
- scope: un oggetto Scope
- contenuto: 0-D. L'immagine con codifica PNG.
Attributi facoltativi (vedi Attrs ):
- canali: numero di canali di colore per l'immagine decodificata.
Resi:
-
Output: 3-D con forma[height, width, channels].
Costruttori e distruttori | |
|---|---|
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodePng::Attrs & attrs) |
Attributi pubblici | |
|---|---|
image | |
operation | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni pubbliche statiche | |
|---|---|
Channels (int64 x) | |
Dtype (DataType x) | |
Strutture | |
|---|---|
| tensorflow:: ops:: DecodePng:: Attrs | Setter di attributi facoltativi per DecodePng . |
Attributi pubblici
immagine
::tensorflow::Output image
operazione
Operation operation
Funzioni pubbliche
DecodePng
DecodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
DecodePng
DecodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodePng::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
Canali
Attrs Channels( int64 x )
Tipo D
Attrs Dtype( DataType x )