tensorflow :: অপস:: এনকোডপিএনজি

#include <image_ops.h>

একটি ছবি PNG-এনকোড করুন।

সারসংক্ষেপ

image একটি 3-D uint8 বা uint16 আকৃতির টেনসর [height, width, channels] যেখানে channels হল:

  • 1: গ্রেস্কেলের জন্য।
  • 2: গ্রেস্কেল + আলফার জন্য।
  • 3: RGB এর জন্য।
  • 4: RGBA-এর জন্য।

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)

কাঠামো

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
)