টেনসরফ্লো :: অপস:: ডিকোডবিএমপি

#include <image_ops.h>

একটি BMP-এনকোড করা ছবির প্রথম ফ্রেমটিকে একটি uint8 টেনসরে ডিকোড করুন।

সারসংক্ষেপ

attr channels ডিকোড করা ছবির জন্য কাঙ্খিত সংখ্যক রঙের চ্যানেল নির্দেশ করে।

গৃহীত মান হল:

  • 0: BMP-এনকোড করা ছবিতে চ্যানেলের সংখ্যা ব্যবহার করুন।
  • 3: একটি RGB ইমেজ আউটপুট।
  • 4: একটি RGBA ইমেজ আউটপুট করুন।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • বিষয়বস্তু: 0-ডি। BMP-এনকোড করা ছবি।

রিটার্ন:

  • Output : 3-ডি আকৃতি সহ [height, width, channels] । আরজিবি অর্ডার

কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর

DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents)
DecodeBmp (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodeBmp::Attrs & attrs)

পাবলিক বৈশিষ্ট্য

image
operation

পাবলিক ফাংশন

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

পাবলিক স্ট্যাটিক ফাংশন

Channels (int64 x)

কাঠামো

tensorflow:: ops:: DecodeBmp:: Attrs

DecodeBmp- এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।

পাবলিক বৈশিষ্ট্য

ইমেজ

::tensorflow::Output image

অপারেশন

Operation operation

পাবলিক ফাংশন

ডিকোডবিএমপি

 DecodeBmp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

ডিকোডবিএমপি

 DecodeBmp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents,
  const DecodeBmp::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

চ্যানেল

Attrs Channels(
  int64 x
)