টেনসরফ্লো :: অপস:: EncodeJpeg
#include <image_ops.h>JPEG- একটি ছবি এনকোড করুন।
সারাংশ
 image একটি 3-D uint8 আকৃতির টেনসর [height, width, channels] ।
 attr format এনকোড করা আউটপুটের রঙ বিন্যাসকে ওভাররাইড করতে ব্যবহার করা যেতে পারে। মান হতে পারে:
-  `'' : Use a default format based on the number of channels in the image. *গ্রেস্কেল: Output a grayscale JPEG image. Theছবির: Output a grayscale JPEG image. Thedimension ofmust be 1. *rgb: Output an RGB JPEG image. Theছবির: Output an RGB JPEG image. Thedimension ofঅবশ্যই 3 হতে হবে।
 যদি format নির্দিষ্ট করা না থাকে বা খালি স্ট্রিং হয়, তাহলে image চ্যানেলের সংখ্যার ফাংশনে একটি ডিফল্ট বিন্যাস বাছাই করা হয়:
- 1: একটি গ্রেস্কেল চিত্র আউটপুট ।
- 3: একটি RGB ইমেজ আউটপুট করুন ।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
-  চিত্র: 3-ডি আকৃতি [height, width, channels]সহ।
 ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):
- বিন্যাস: প্রতি পিক্সেল চিত্র বিন্যাস।
- গুণমান: 0 থেকে 100 পর্যন্ত কম্প্রেশনের গুণমান (উচ্চতর ভাল এবং ধীর)।
- প্রগতিশীল: সত্য হলে, একটি JPEG তৈরি করুন যা ধীরে ধীরে লোড হয় (মোটা থেকে সূক্ষ্ম)।
- optimize_size: সত্য হলে, কোন গুণগত পরিবর্তন ছাড়াই আকার কমাতে CPU/RAM খরচ করুন।
- chroma_downsampling: http://en.wikipedia.org/wiki/Chroma_subsampling দেখুন।
-  density_unit: x_densityএবংy_densityনির্দিষ্ট করতে ব্যবহৃত ইউনিট : প্রতি ইঞ্চিতে পিক্সেল ('in') বা সেন্টিমিটার ('cm')।
- x_density: প্রতি ঘনত্ব একক অনুভূমিক পিক্সেল।
- y_density: প্রতি ঘনত্ব ইউনিটে উল্লম্ব পিক্সেল।
- xmp_metadata: খালি না হলে, এই XMP মেটাডেটা ইমেজ হেডারে এম্বেড করুন।
রিটার্ন:
-  Output: 0-D। JPEG-এনকোডেড ছবি।
| কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর | |
|---|---|
| EncodeJpeg (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
| EncodeJpeg (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodeJpeg::Attrs & attrs) | 
| পাবলিক বৈশিষ্ট্য | |
|---|---|
| contents | |
| operation | |
| পাবলিক ফাংশন | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
| ChromaDownsampling (bool x) | |
| DensityUnit (StringPiece x) | |
| Format (StringPiece x) | |
| OptimizeSize (bool x) | |
| Progressive (bool x) | |
| Quality (int64 x) | |
| XDensity (int64 x) | |
| XmpMetadata (StringPiece x) | |
| YDensity (int64 x) | |
| কাঠামো | |
|---|---|
| tensorflow:: ops:: EncodeJpeg:: Attrs | EncodeJpeg- এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার। | 
পাবলিক বৈশিষ্ট্য
বিষয়বস্তু
::tensorflow::Output contents
অপারেশন
Operation operation
পাবলিক ফাংশন
EncodeJpeg
EncodeJpeg( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
EncodeJpeg
EncodeJpeg( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodeJpeg::Attrs & attrs )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
ক্রোমাডাউনস্যাম্পলিং
Attrs ChromaDownsampling( bool x )
ঘনত্ব ইউনিট
Attrs DensityUnit( StringPiece x )
বিন্যাস
Attrs Format( StringPiece x )
অপ্টিমাইজ সাইজ
Attrs OptimizeSize( bool x )
প্রগতিশীল
Attrs Progressive( bool x )
গুণমান
Attrs Quality( int64 x )
এক্স ঘনত্ব
Attrs XDensity( int64 x )
XmpMetadata
Attrs XmpMetadata( StringPiece x )
Y ঘনত্ব
Attrs YDensity( int64 x )