সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: ডিকোডবিএমপি
#include <image_ops.h>
একটি BMP-এনকোড করা ছবির প্রথম ফ্রেমটিকে একটি uint8 টেনসরে ডিকোড করুন।
সারাংশ
attr channels
ডিকোড করা ছবির জন্য কাঙ্খিত সংখ্যক রঙের চ্যানেল নির্দেশ করে।
গৃহীত মান হল:
- 0: BMP-এনকোড করা ছবিতে চ্যানেলের সংখ্যা ব্যবহার করুন।
- 3: একটি RGB ইমেজ আউটপুট।
- 4: একটি RGBA ইমেজ আউটপুট করুন।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- বিষয়বস্তু: 0-ডি। BMP-এনকোড করা ছবি।
রিটার্ন:
-
Output
: 3-ডি আকৃতি সহ [height, width, channels]
। আরজিবি অর্ডার
পাবলিক স্ট্যাটিক ফাংশন |
---|
Channels (int64 x) | |
পাবলিক বৈশিষ্ট্য
পাবলিক ফাংশন
নোড
::tensorflow::Node * node() const
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
চ্যানেল
Attrs Channels(
int64 x
)
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-27 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-27 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::DecodeBmp Class Reference\n\ntensorflow::ops::DecodeBmp\n==========================\n\n`#include \u003cimage_ops.h\u003e`\n\nDecode the first frame of a BMP-encoded image to a uint8 tensor.\n\nSummary\n-------\n\nThe attr `channels` indicates the desired number of color channels for the decoded image.\n\nAccepted values are:\n\n\n- 0: Use the number of channels in the BMP-encoded image.\n- 3: output an RGB image.\n- 4: output an RGBA image.\n\n\u003cbr /\u003e\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- contents: 0-D. The BMP-encoded image.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 3-D with shape `[height, width, channels]`. RGB order\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DecodeBmp](#classtensorflow_1_1ops_1_1_decode_bmp_1a855787daeff1be34d915da13f1558e54)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents)` ||\n| [DecodeBmp](#classtensorflow_1_1ops_1_1_decode_bmp_1a5d310550797ac800bdedfa5b0f952fb6)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents, const `[DecodeBmp::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs#structtensorflow_1_1ops_1_1_decode_bmp_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [image](#classtensorflow_1_1ops_1_1_decode_bmp_1aea897d04b869d2e3914701e2d67a8fe4) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_decode_bmp_1a04ba19d38081ad21624b98dfbe82f820) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_decode_bmp_1a3cd839e2c4b2c2fb8e5a1bd9a6a0601e)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_bmp_1a1797102fb2ef1291fef6911ab3dce187)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_bmp_1a1b3e3327c4b3957e8563a09b778d9b21)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [Channels](#classtensorflow_1_1ops_1_1_decode_bmp_1a5b486f770e8a02c96c14c50f0c791199)`(int64 x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs#structtensorflow_1_1ops_1_1_decode_bmp_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DecodeBmp::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/decode-bmp/attrs) | Optional attribute setters for [DecodeBmp](/versions/r2.2/api_docs/cc/class/tensorflow/ops/decode-bmp#classtensorflow_1_1ops_1_1_decode_bmp). |\n\nPublic attributes\n-----------------\n\n### image\n\n```text\n::tensorflow::Output image\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### DecodeBmp\n\n```gdscript\n DecodeBmp(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input contents\n)\n``` \n\n### DecodeBmp\n\n```gdscript\n DecodeBmp(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input contents,\n const DecodeBmp::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Channels\n\n```text\nAttrs Channels(\n int64 x\n)\n```"]]