テンソルフロー::作戦::画像パッチの抽出
#include <array_ops.h> imagesからpatchesを抽出し、「深度」出力次元に配置します。
まとめ
引数:
- スコープ:スコープオブジェクト
- 画像: 形状[batch, in_rows, in_cols, depth]の 4 次元テンソル。
-  ksizes: imagesの各次元のスライディング ウィンドウのサイズ。
- ストライド: 2 つの連続するパッチの中心が画像内でどのくらい離れているか。 [1, stride_rows, stride_cols, 1]である必要があります。
-  rate: [1, rate_rows, rate_cols, 1]である必要があります。これは入力ストライドであり、2 つの連続するパッチ サンプルが入力内でどのくらい離れているかを指定します。patch_sizes_eff = patch_sizes + (patch_sizes - 1) * (rates - 1)を使用してパッチを抽出し、その後にratesの係数で空間的にサブサンプリングすることと同じです。これは、拡張された (別名 Atrous) 畳み込みのrateに相当します。
- padding: 使用するパディング アルゴリズムのタイプ。
戻り値:
-  Output: 「深さ」次元でベクトル化されたサイズksize_rows x ksize_cols x depthの画像パッチを含む形状[batch, out_rows, out_cols, ksize_rows * ksize_cols * depth]4 次元テンソル。out_rowsとout_cols出力パッチの次元であることに注意してください。
| コンストラクターとデストラクター | |
|---|---|
| ExtractImagePatches (const :: tensorflow::Scope & scope, :: tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding) | 
| パブリック属性 | |
|---|---|
| operation | |
| patches | |
| 公共機能 | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
パブリック属性
手術
Operation operation
パッチ
::tensorflow::Output patches
公共機能
画像パッチの抽出
ExtractImagePatches( const ::tensorflow::Scope & scope, ::tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const