Tensorflow :: ops :: DecodeBmp
#include <image_ops.h>
Dekodieren Sie den ersten Frame eines BMP-codierten Bildes in einen uint8-Tensor.
Zusammenfassung
Die attr- channels
geben die gewünschte Anzahl von Farbkanälen für das decodierte Bild an.
Akzeptierte Werte sind:
- 0: Verwenden Sie die Anzahl der Kanäle im BMP-codierten Bild.
- 3: Ausgabe eines RGB-Bildes.
- 4: Ausgabe eines RGBA-Bildes.
Argumente:
- scope: Ein Scope- Objekt
- Inhalt: 0-D. Das BMP-codierte Bild.
Kehrt zurück:
-
Output
: 3-D mit Form[height, width, channels]
. RGB-Bestellung
Konstruktoren und Destruktoren | |
---|---|
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodeBmp::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
image | |
operation |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Channels (int64 x) |
Strukturen | |
---|---|
tensorflow :: ops :: DecodeBmp :: Attrs | Optionale Attributsetzer für DecodeBmp . |
Öffentliche Attribute
Bild
::tensorflow::Output image
Operation
Operation operation
Öffentliche Funktionen
DecodeBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
DecodeBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodeBmp::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Kanäle
Attrs Channels( int64 x )