تدفق التوتر:: العمليات:: ترميزPng
#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
: 0-د. صورة مشفرة بـ PNG.
البنائين والمدمرين | |
---|---|
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs) |
الوظائف العامة | |
---|---|
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
الوظائف العامة
ترميز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
)