テンソルフロー::作戦:: 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]を持つ 3-D。
オプションの属性 ( Attrsを参照):
- 圧縮: 圧縮レベル。
戻り値:
-
Output: 0-D。 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
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
圧縮
Attrs Compression( int64 x )