przepływ tensorowy:: ops:: KodujPng
#include <image_ops.h>Zakoduj obraz w formacie PNG.
Streszczenie
image jest trójwymiarowym tensorem uint8 lub uint16 o kształcie [height, width, channels] gdzie channels to:
- 1: dla skali szarości.
- 2: dla skali szarości + alfa.
- 3: dla RGB.
- 4: dla RGBA.
Poziom kompresji ZLIB, compression , może wynosić -1 dla domyślnego kodera PNG lub wartość od 0 do 9. 9 to najwyższy poziom kompresji, generujący najmniejszy wynik, ale jest wolniejszy.
Argumenty:
- zakres: Obiekt Scope
- obraz: 3-D z kształtem
[height, width, channels].
Opcjonalne atrybuty (patrz Attrs ):
- kompresja: poziom kompresji.
Zwroty:
-
Output: 0-D. Obraz zakodowany w formacie PNG.
Konstruktory i destruktory | |
|---|---|
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs) |
Atrybuty publiczne | |
|---|---|
contents | |
operation | |
Funkcje publiczne | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Publiczne funkcje statyczne | |
|---|---|
Compression (int64 x) | |
Struktury | |
|---|---|
| tensorflow:: ops:: EncodePng:: Attrs | Opcjonalne ustawiacze atrybutów dla EncodePng . |
Atrybuty publiczne
zawartość
::tensorflow::Output contents
działanie
Operation operation
Funkcje publiczne
KodujPng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
KodujPng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Wejście
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Kompresja
Attrs Compression( int64 x )