tensorflow::ops::EncodePng

#include <image_ops.h>

Bir görüntüyü PNG formatına dönüştürün.

Özet

image [height, width, channels] şeklinde 3 boyutlu bir uint8 veya uint16 Tensor'dur ; burada channels şöyledir:

  • 1: Gri tonlama için.
  • 2: Gri tonlama + alfa için.
  • 3: RGB için.
  • 4: RGBA için.

ZLIB sıkıştırma seviyesi, compression , PNG kodlayıcısının varsayılan değeri olan -1 veya 0 ile 9 arasında bir değer olabilir. 9 en yüksek sıkıştırma seviyesidir ve en küçük çıktıyı üretir, ancak daha yavaştır.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • Resim: [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 boyutlu PNG formatında kodlanmış görüntü.

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

Kamusal işlevler

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Herkese açık statik fonksiyonlar

Compression (int64 x)

Yapılar

tensorflow::ops::EncodePng::Attrs

EncodePng için isteğe bağlı öznitelik ayarlayıcıları.

Genel özellikler

içerik

::tensorflow::Output contents

operasyon

Operation operation

Kamusal işlevler

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::Çıktı

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

Sıkıştırma

Attrs Compression(
  int64 x
)