tensorflow:: ops:: DecodePng
#include <image_ops.h>PNG形式でエンコードされた画像をuint8またはuint16テンソルにデコードします。
まとめ
attr channels 、デコードされた画像に必要なカラーチャンネルの数を示します。
許容される値は以下のとおりです。
- 0: PNGエンコードされた画像のチャンネル数を使用します。
- 1:グレースケール画像を出力します。
- 3:RGB画像を出力する。
- 4:RGBA画像を出力する。
必要に応じて、PNG形式でエンコードされた画像は、要求されたカラーチャンネル数に合わせて変換されます。
この操作は、インターフェースが同じであるため、JPEG とアニメーションのない GIF のデコードもサポートしていますが、 tf.io.decode_image使用する方がより簡潔です。
議論:
- スコープ:スコープオブジェクト
- 内容: 0-D。PNG形式でエンコードされた画像。
オプション属性( Attrs参照):
- チャンネル数:デコードされた画像のカラーチャンネル数。
返品:
-
Output:形状[height, width, channels]を持つ3D。
コンストラクターとデストラクタ | |
|---|---|
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodePng::Attrs & attrs) |
公開属性 | |
|---|---|
image | |
operation | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
Channels (int64 x) | |
Dtype (DataType x) | |
構造 | |
|---|---|
| tensorflow:: ops:: DecodePng:: Attrs | DecodePngのオプション属性セッター。 |
公開属性
画像
::tensorflow::Output image
手術
Operation operation
公的機能
DecodePng
DecodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
DecodePng
DecodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodePng::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
チャンネル
Attrs Channels( int64 x )
データ型
Attrs Dtype( DataType x )