tensör akışı:: operasyon:: EncodePng
#include <image_ops.h>
Bir görüntüyü PNG olarak kodlayın.
Özet
image
, kanalların şu şekilde olduğu bir 3-D uint8 veya uint16 şekil tensörüdür [height, width, channels]
channels
- 1: gri tonlama için.
- 2: gri tonlamalı + 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 ila 9 arasında bir değer olabilir. 9, en küçük çıktıyı üreten en yüksek sıkıştırma düzeyidir, ancak daha yavaştır.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- görüntü:
[height, width, channels]
şeklinde 3 boyutlu .
İsteğe bağlı özellikler (bkz. Attrs
):
- sıkıştırma: Sıkıştırma seviyesi.
İadeler:
-
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:: Attrs | EncodePng için isteğe bağlı öznitelik ayarlayıcılar. |
Genel özellikler
içindekiler
::tensorflow::Output contents
operasyon
Operation operation
Kamu işlevleri
EncodePng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
EncodePng
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::Çıkış
operator::tensorflow::Output() const
Genel statik işlevler
Sıkıştırma
Attrs Compression( int64 x )