Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::DecodeBmp

#include <image_ops.h>

Декодирование первого кадра BMP-изображения в тензор uint8.

Краткое описание

Атрибут channels указывает желаемое количество цветовых каналов для декодированного изображения.

Допустимые значения:

  • 0: Используется количество каналов в BMP-изображении.
  • 3: вывод RGB-изображения.
  • 4: вывод RGBA-изображения.

Аргументы:

  • scope: Объект Scope
  • contents: 0-D. BMP-изображение.

Возвращаемое значение:

  • Output: 3-D со формой [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
::tensorflow::Output
operation
Operation
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Общедоступные статические функции
Channels(int64 x)
Attrs
Структуры
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/r2.3/api_docs/cc/class/tensorflow/ops/decode-bmp

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API