tensorflow:: אופס:: EncodePng
#include <image_ops.h>
PNG-קודד תמונה.
תַקצִיר
image
היא תלת-ממד uint8 או uint16 Tensor של צורה [height, width, channels]
כאשר channels
הם:
- 1: עבור גווני אפור.
- 2: עבור גווני אפור + אלפא.
- 3: עבור RGB.
- 4: עבור RGBA.
רמת הדחיסה ZLIB, compression
, יכולה להיות -1 עבור ברירת המחדל של מקודד PNG או ערך מ-0 עד 9. 9 היא רמת הדחיסה הגבוהה ביותר, המייצרת את הפלט הקטן ביותר, אך היא איטית יותר.
טיעונים:
- scope: אובייקט Scope
- תמונה: תלת מימדית עם צורה
[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) |
תפקידים ציבוריים | |
---|---|
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::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
דְחִיסָה
Attrs Compression(
int64 x
)