टेंसरफ़्लो:: ऑप्स:: एनकोडपीएनजी
#include <image_ops.h>
एक छवि पीएनजी-एन्कोड करें।
सारांश
image
एक 3-डी uint8 या uint16 आकार का टेंसर [height, width, channels]
है जहां channels
:
- 1: ग्रेस्केल के लिए।
- 2: ग्रेस्केल + अल्फा के लिए।
- 3: आरजीबी के लिए।
- 4: आरजीबीए के लिए।
ZLIB संपीड़न स्तर, compression
, PNG-एनकोडर डिफ़ॉल्ट के लिए -1 हो सकता है या 0 से 9 तक का मान हो सकता है। 9 उच्चतम संपीड़न स्तर है, जो सबसे छोटा आउटपुट उत्पन्न करता है, लेकिन धीमा है।
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- छवि: आकार के साथ 3-डी
[height, width, channels]
।
वैकल्पिक विशेषताएँ (देखें Attrs
):
- संपीड़न: संपीड़न स्तर।
रिटर्न:
-
Output
: 0-डी। पीएनजी-एन्कोडेड छवि।
निर्माता और विनाशक | |
---|---|
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( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
एनकोडपीएनजी
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
नोड
::tensorflow::Node * node() const
ऑपरेटर :: टेंसरफ़्लो :: इनपुट
operator::tensorflow::Input() const
ऑपरेटर :: टेंसरफ़्लो :: आउटपुट
operator::tensorflow::Output() const
सार्वजनिक स्थैतिक कार्य
दबाव
Attrs Compression( int64 x )