tensorflow:: ops:: EncodePng

#include <image_ops.h>

ترميز صورة بصيغة PNG.

ملخص

image عبارة عن موتر ثلاثي الأبعاد من نوع uint8 أو uint16 ذو شكل [height, width, channels] حيث channels هي:

  • 1: للصور الرمادية.
  • 2: للتدرج الرمادي + ألفا.
  • 3: لـ RGB.
  • 4: لـ RGBA.

يمكن أن يكون مستوى ضغط ZLIB، compression ، -1 للإعداد الافتراضي لبرنامج ترميز PNG أو قيمة من 0 إلى 9. 9 هو أعلى مستوى ضغط، مما ينتج عنه أصغر مخرجات، ولكنه أبطأ.

الحجج:

  • النطاق: كائن النطاق
  • صورة: ثلاثية الأبعاد ذات شكل [height, width, channels] .

السمات الاختيارية (انظر Attrs ):

  • الضغط: مستوى الضغط.

المرتجعات:

  • Output : صورة مشفرة بصيغة PNG (0-D).

البناة والمدمرون

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

السمات العامة

contents
operation

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

الدوال الثابتة العامة

Compression (int64 x)

الهياكل

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
)