tensorflow::ops::DecodeBmp
#include <image_ops.h>
Декодирует первый кадр изображения в формате BMP в тензор uint8.
Краткое описание
Атрибут 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 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/decode-bmp