tensorflow:: ops:: EncodePng

#include <image_ops.h>

किसी इमेज को PNG फॉर्मेट में बदलें।

सारांश

image एक 3-डी uint8 या uint16 टेंसर है जिसका आकार [height, width, channels] है, जहां channels हैं:

  • 1: ग्रेस्केल के लिए।
  • 2: ग्रेस्केल + अल्फा के लिए।
  • 3: RGB के लिए।
  • 4: आरजीबीए के लिए।

ZLIB संपीड़न स्तर, compression , PNG-एनकोडर डिफ़ॉल्ट के लिए -1 हो सकता है या 0 से 9 तक का मान हो सकता है। 9 उच्चतम संपीड़न स्तर है, जो सबसे छोटा आउटपुट उत्पन्न करता है, लेकिन धीमा होता है।

तर्क:

  • स्कोप: एक स्कोप ऑब्जेक्ट
  • छवि: 3-डी आकार के साथ [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)

संरचनाएँ

टेन्सरफ्लो::ऑप्स::एनकोडपीएनजी::एट्रिब्यूट्स

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 

ऑपरेटर::टेन्सरफ्लो::इनपुट

 operator::tensorflow::Input() const 

ऑपरेटर::टेन्सरफ्लो::आउटपुट

 operator::tensorflow::Output() const 

सार्वजनिक स्थैतिक फ़ंक्शन

दबाव

Attrs Compression(
  int64 x
)