Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::EncodePng

#include <image_ops.h>

Кодирование изображения в формате PNG.

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

image — это 3-мерный тензор uint8 или uint16 Tensor формы [height, width, channels], где channels:

  • 1: для градации серого.
  • 2: для градации серого + альфа.
  • 3: для RGB.
  • 4: для RGBA.

Уровень сжатия ZLIB, compression, может быть равен -1 для значения по умолчанию PNG-кодировщика или значению от 0 до 9. 9 — максимальный уровень сжатия, генерирующий наименьший выходной результат, но он медленнее.

Аргументы:

  • scope: Объект Scope
  • image: 3-мерный с формой [height, width, channels].

Необязательные атрибуты (см. Attrs):

  • compression: Уровень сжатия.

Возвращает:

  • Output: 0-мерный. Изображение, закодированное в формате PNG.
Конструкторы и деструкторы
EncodePng(const ::tensorflow::Scope & scope, ::tensorflow::Input image)
EncodePng(const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs)
Публичные атрибуты
contents
::tensorflow::Output
operation
Operation
Публичные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Публичные статические функции
Compression(int64 x)
Attrs
Структуры
tensorflow::ops::EncodePng::Attrs

Необязательные установщики атрибутов для EncodePng.

Публичные атрибуты

содержимое

::tensorflow::Output contents

операция

Operation operation

Публичные функции

EncodePng

 EncodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input image
)

EncodePng

 EncodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input image,
  const EncodePng::Attrs & attrs
)

узел

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Публичные статические функции

Сжатие

Attrs Compression(
  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/encode-png

Spec-Zone.ru

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