tensor akışı:: işlem:: KodlamaPng
#include <image_ops.h>Bir görüntüyü PNG olarak kodlayın.
Özet
image şeklin [height, width, channels] 3 boyutlu bir uint8 veya uint16 Tensörüdür ; burada channels :
- 1: gri tonlama için.
- 2: gri tonlama + alfa için.
- 3: RGB için.
- 4: RGBA için.
ZLIB sıkıştırma düzeyi, compression , PNG kodlayıcı varsayılanı için -1 olabilir veya 0 ile 9 arasında bir değer olabilir. 9, en küçük çıktıyı oluşturan en yüksek sıkıştırma düzeyidir ancak daha yavaştır.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- görüntü: Şekilli 3 boyutlu
[height, width, channels].
İsteğe bağlı özellikler (bkz. Attrs ):
- sıkıştırma: Sıkıştırma düzeyi.
İade:
-
Output: 0-D. PNG kodlu resim.
Yapıcılar ve Yıkıcılar | |
|---|---|
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs) |
Genel özellikler | |
|---|---|
contents | |
operation | |
Kamu işlevleri | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Genel statik işlevler | |
|---|---|
Compression (int64 x) | |
Yapılar | |
|---|---|
| tensorflow:: ops:: EncodePng:: Öznitelikler | EncodePng için isteğe bağlı öznitelik ayarlayıcılar. |
Genel özellikler
içindekiler
::tensorflow::Output contents
operasyon
Operation operation
Kamu işlevleri
KodlamaPng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
KodlamaPng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Sıkıştırma
Attrs Compression( int64 x )