tensor akışı:: işlem:: Kod ÇözmeBmp

#include <image_ops.h>

BMP kodlu bir görüntünün ilk karesinin kodunu bir uint8 tensörüne dönüştürün.

Özet

Attr channels kodu çözülmüş görüntü için istenen renk kanalı sayısını belirtir.

Kabul edilen değerler şunlardır:

  • 0: BMP kodlu görüntüdeki kanal sayısını kullanın.
  • 3: bir RGB görüntüsünün çıktısını alın.
  • 4: bir RGBA görüntüsünün çıktısını alın.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • içindekiler: 0-D. BMP kodlu görüntü.

İadeler:

  • Output : Şekilli 3 boyutlu [height, width, channels] . RGB sırası

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

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

Genel özellikler

image
operation

Kamu işlevleri

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

Genel statik işlevler

Channels (int64 x)

Yapılar

tensorflow:: ops:: DecodeBmp:: Öznitelikler

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

Genel özellikler

resim

::tensorflow::Output image

operasyon

Operation operation

Kamu işlevleri

Kod ÇözmeBmp

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

Kod ÇözmeBmp

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

Kanallar

Attrs Channels(
  int64 x
)