tensorflow::ops::DecodePng

#include <image_ops.h>

PNG formatında kodlanmış bir görüntüyü uint8 veya uint16 tensörüne dönüştürün.

Özet

Attr channels çözümlenen görüntü için istenen renk kanalı sayısını gösterir.

Kabul edilen değerler şunlardır:

  • 0: PNG formatında kodlanmış görüntüdeki kanal sayısını kullanın.
  • 1: Gri tonlamalı bir görüntü çıktısı alın.
  • 3: Bir RGB görüntüsü oluşturun.
  • 4: RGBA formatında bir görüntü çıktısı alın.

Gerektiğinde, PNG formatındaki görüntü, istenen renk kanalı sayısına uyacak şekilde dönüştürülür.

Bu işlem, arayüz aynı olduğundan JPEG ve animasyonsuz GIF'lerin kod çözme işlemini de destekler, ancak tf.image.decode_image kullanmak daha temiz bir yöntemdir.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • İçerik: 0-D. PNG formatında kodlanmış görüntü.

İsteğe bağlı özellikler (bkz. Attrs ):

  • Kanallar: Çözümlenen görüntü için renk kanalı sayısı.

İadeler:

  • Output : [height, width, channels] şeklinde 3 boyutlu görüntü.

Yapıcılar ve Yıkıcılar

DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents)
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodePng::Attrs & attrs)

Genel özellikler

image
operation

Kamusal işlevler

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

Herkese açık statik fonksiyonlar

Channels (int64 x)
Dtype (DataType x)

Yapılar

tensorflow::ops::DecodePng::Attrs

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

Genel özellikler

resim

::tensorflow::Output image

operasyon

Operation operation

Kamusal işlevler

DecodePng

 DecodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

DecodePng

 DecodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents,
  const DecodePng::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

Kanallar

Attrs Channels(
  int64 x
)

Dtype

Attrs Dtype(
  DataType x
)