tensorflow:: ops:: EncodePng
#include <image_ops.h>Kodowanie obrazu w formacie PNG.
Streszczenie
image jest 3-wymiarowym 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 w przypadku domyślnego poziomu kodera PNG lub przyjmować wartości od 0 do 9. 9 to najwyższy poziom kompresji generujący najmniejszy wynik, ale jest wolniejszy.
Argumenty:
- zakres: obiekt zakresu
- obraz: 3-D o kształcie
[height, width, channels].
Atrybuty opcjonalne (patrz Attrs ):
- kompresja: Poziom kompresji.
Zwroty:
-
Output: obraz w formacie 0-D. 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 settery atrybutów dla EncodePng . |
Atrybuty publiczne
zawartość
::tensorflow::Output contents
działanie
Operation operation
Funkcje publiczne
Kodowanie PNG
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
Kodowanie PNG
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Kompresja
Attrs Compression( int64 x )