tensorflow:: ops:: EncodePng

#include <image_ops.h>

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

সারসংক্ষেপ

image হলো [height, width, channels] আকারের একটি ত্রিমাত্রিক uint8 বা uint16 টেনসর, যেখানে channels হলো:

  • ১: গ্রেস্কেলের জন্য।
  • ২: গ্রেস্কেল + আলফা-এর জন্য।
  • ৩: আরজিবি (RGB)-এর জন্য।
  • 4: RGBA-এর জন্য।

ZLIB কম্প্রেশন লেভেল, compression , PNG-এনকোডারের ডিফল্ট হিসেবে -1 অথবা 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(
  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
)