テンソルフロー::作戦::サイズ変更バイキュービック
#include <image_ops.h>バイキュービック補間を使用してimagesのsizeを変更します。
まとめ
入力イメージはさまざまなタイプにすることができますが、出力イメージは常に float です。
引数:
- スコープ:スコープオブジェクト
- 画像: 形状
[batch, height, width, channels]を持つ 4-D。 - size: = 2 つの要素の 1 次元 int32テンソル:
new_height, new_width。画像の新しいサイズ。
オプションの属性 ( Attrsを参照):
- align_corners: true の場合、入力テンソルと出力テンソルの 4 つのコーナー ピクセルの中心が位置合わせされ、コーナー ピクセルの値が維持されます。デフォルトは false です。
戻り値:
-
Output: 形状[batch, new_height, new_width, channels]の 4-D。
コンストラクターとデストラクター | |
|---|---|
ResizeBicubic (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size) | |
ResizeBicubic (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeBicubic::Attrs & attrs) |
パブリック属性 | |
|---|---|
operation | |
resized_images | |
公共機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) | |
構造体 | |
|---|---|
| tensorflow:: ops:: ResizeBicubic:: Attrs | ResizeBicubicのオプションの属性セッター。 |
パブリック属性
手術
Operation operation
サイズ変更された画像
::tensorflow::Output resized_images
公共機能
サイズ変更バイキュービック
ResizeBicubic( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size )
サイズ変更バイキュービック
ResizeBicubic( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, const ResizeBicubic::Attrs & attrs )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
コーナーを揃える
Attrs AlignCorners( bool x )
ハーフピクセルセンター
Attrs HalfPixelCenters( bool x )