تينسورفلو :: العمليات :: EncodePng
#include <image_ops.h>
PNG- ترميز صورة.
ملخص
image
عبارة عن موتر ثلاثي الأبعاد للشكل [height, width, channels]
حيث تكون channels
:
- 1: لتدرج الرمادي.
- 2: لتدرج الرمادي + ألفا.
- 3: لـ RGB.
- 4: لـ RGBA.
يمكن أن يكون مستوى ضغط ZLIB ، compression
، -1 بالنسبة لمشفّر PNG الافتراضي أو قيمة من 0 إلى 9. 9 هو أعلى مستوى ضغط ، مما ينتج عنه أصغر إخراج ، ولكنه أبطأ.
الحجج:
- النطاق: كائن النطاق
- الصورة: ثلاثية الأبعاد مع الشكل
[height, width, channels]
.
السمات الاختيارية (انظر Attrs
):
- الضغط: مستوى الضغط.
عائدات:
-
Output
: 0-D. صورة بتنسيق PNG.
البنائين والمدمرين | |
---|---|
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
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
ضغط
Attrs Compression( int64 x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-08-30 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]