tensorflow::ops::ExtractImagePatches
#include <array_ops.h>
Извлечь patches из images и поместить их в измерение «глубина».
Summary
Arguments:
- scope: An object Scope
- images: 4-мерный Tensor с формой
[batch, in_rows, in_cols, depth]. - ksizes: Размер скользящего окна для каждого измерения
images. - strides: Расстояние между центрами двух последовательных областей в изображениях. Должно быть:
[1, stride_rows, stride_cols, 1]. - rates: Должно быть:
[1, rate_rows, rate_cols, 1]. Это шаг входных данных, определяющий расстояние между двумя последовательными образцами области во входных данных. Эквивалентно извлечению областей сpatch_sizes_eff = patch_sizes + (patch_sizes - 1) * (rates - 1), за которым следует пространственное подвыборка с коэффициентомrates. Это эквивалентноrateв дилатационных (также известных как атроповых) свёртках. - padding: Тип алгоритма заполнения.
Returns:
-
Output: 4-мерный Tensor с формой[batch, out_rows, out_cols, ksize_rows * ksize_cols * depth], содержащий области изображения размеромksize_rows x ksize_cols x depthвекторно в измерении «глубина». Обратите внимание, что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 operation
patches
::tensorflow::Output patches
Общедоступные функции
ExtractImagePatches
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 )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/extract-image-patches