tensorflow:: عملیات:: EncodePng

#include <image_ops.h>

PNG-رمزگذاری یک تصویر.

خلاصه

image یک تانسور سه‌بعدی uint8 یا uint16 با شکل [height, width, channels] است که در آن channels عبارت‌اند از:

  • ۱: برای مقیاس خاکستری.
  • ۲: برای مقیاس خاکستری + آلفا.
  • ۳: برای RGB.
  • ۴: برای RGBA.

سطح فشرده‌سازی ZLIB، compression ، می‌تواند برای پیش‌فرض PNG-encoder برابر با -۱ یا مقداری از ۰ تا ۹ باشد. ۹ بالاترین سطح فشرده‌سازی است که کوچکترین خروجی را تولید می‌کند، اما کندتر است.

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • تصویر: سه‌بعدی با شکل [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:: عملیات:: EncodePng:: جذابیت‌ها

تنظیم‌کننده‌های ویژگی اختیاری برای EncodePng .

ویژگی‌های عمومی

محتویات

::tensorflow::Output contents

عملیات

Operation operation

کارکردهای عمومی

رمزگذاریPNG

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

رمزگذاریPNG

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

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

فشرده سازی

Attrs Compression(
  int64 x
)