tensorflow:: ops:: EncodePng

#include <image_ops.h>

画像をPNG形式でエンコードします。

まとめ

image [height, width, channels]の形状を持つ 3 次元 uint8 または uint16テンソルです。ここでchannelsのとおりです。

  • 1:グレースケールの場合。
  • 2: グレースケール + アルファの場合。
  • 3:RGBの場合。
  • 4: RGBAの場合。

ZLIBの圧縮レベル( compression )は、PNGエンコーダのデフォルト値である-1、または0から9までの値を指定できます。9は最高の圧縮レベルで、最小の出力サイズになりますが、処理速度は遅くなります。

議論:

  • スコープ:スコープオブジェクト
  • 画像: 形状[height, width, channels]を持つ 3D。

オプション属性( Attrs参照):

  • 圧縮:圧縮レベル。

返品:

  • Output :0次元のPNGエンコード画像。

コンストラクターとデストラクタ

EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image)
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs)

公開属性

contents
operation

公的機能

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

パブリック静的関数

Compression (int64 x)

構造

tensorflow:: ops:: EncodePng:: Attrs

EncodePngのオプション属性セッター。

公開属性

コンテンツ

::tensorflow::Output contents

手術

Operation operation

公的機能

EncodePng

 EncodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input image
)

EncodePng

 EncodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input image,
  const EncodePng::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

圧縮

Attrs Compression(
  int64 x
)