tensorflow::ops::DecodeBmp
#include <image_ops.h>
Декодирует первый кадр BMP-изображения в тензор uint8.
Summary
Атрибут channels указывает желаемое количество цветовых каналов для декодированного изображения.
Допустимые значения:
- 0: Используется количество каналов в BMP-изображении.
- 3: Выводится изображение в формате RGB.
- 4: Выводится изображение в формате RGBA.
Аргументы:
- scope: Объект Scope
- contents: 0-D. BMP-изображение.
Возвращает:
-
Output: 3-мерный тензор с формой[height, width, channels]. Порядок цветов RGB
| Конструкторы и деструкторы | |
|---|---|
DecodeBmp(const ::tensorflow::Scope & scope, ::tensorflow::Input contents) | |
DecodeBmp(const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodeBmp::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
image | |
operation | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Channels(int64 x) | |
| Структуры | |
|---|---|
| tensorflow::ops::DecodeBmp::Attrs | Необязательные установки атрибутов для DecodeBmp. |
Публичные атрибуты
image
::tensorflow::Output image
operation
Operation operation
Публичные функции
DecodeBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
DecodeBmp
DecodeBmp( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodeBmp::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
Channels
Attrs Channels( int64 x )
© 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/r1.15/api_docs/cc/class/tensorflow/ops/decode-bmp