tensorflow:: ops:: EncodeJpeg:: Attrs

#include <image_ops.h>

أدوات تعيين السمات الاختيارية لـ EncodeJpeg .

ملخص

السمات العامة

chroma_downsampling_ = true
bool
density_unit_ = "in"
StringPiece
format_ = ""
StringPiece
optimize_size_ = false
bool
progressive_ = false
bool
quality_ = 95
int64
x_density_ = 300
int64
xmp_metadata_ = ""
StringPiece
y_density_ = 300
int64

الوظائف العامة

ChromaDownsampling (bool x)
TF_MUST_USE_RESULT Attrs
DensityUnit (StringPiece x)
TF_MUST_USE_RESULT Attrs
الوحدة المستخدمة لتحديد x_density و y_density : بكسل لكل بوصة ( 'in' ) أو سنتيمتر ( 'cm' ).
Format (StringPiece x)
TF_MUST_USE_RESULT Attrs
تنسيق الصورة لكل بكسل.
OptimizeSize (bool x)
TF_MUST_USE_RESULT Attrs
إذا كان هذا صحيحًا، فسيتم إنفاق موارد المعالج/ذاكرة الوصول العشوائي لتقليل الحجم دون أي تغيير في الجودة.
Progressive (bool x)
TF_MUST_USE_RESULT Attrs
إذا كانت القيمة صحيحة، فأنشئ صورة JPEG يتم تحميلها تدريجياً (من الخشن إلى الدقيق).
Quality (int64 x)
TF_MUST_USE_RESULT Attrs
جودة الضغط من 0 إلى 100 (الأعلى أفضل وأبطأ).
XDensity (int64 x)
TF_MUST_USE_RESULT Attrs
عدد البكسلات الأفقية لكل وحدة كثافة.
XmpMetadata (StringPiece x)
TF_MUST_USE_RESULT Attrs
إذا لم تكن فارغة، فقم بتضمين بيانات تعريف XMP هذه في رأس الصورة.
YDensity (int64 x)
TF_MUST_USE_RESULT Attrs
عدد البكسلات العمودية لكل وحدة كثافة.

السمات العامة

chroma_downsampling_

bool tensorflow::ops::EncodeJpeg::Attrs::chroma_downsampling_ = true

وحدة_الكثافة

StringPiece tensorflow::ops::EncodeJpeg::Attrs::density_unit_ = "in"

شكل_

StringPiece tensorflow::ops::EncodeJpeg::Attrs::format_ = ""

تحسين_الحجم

bool tensorflow::ops::EncodeJpeg::Attrs::optimize_size_ = false

تقدمي

bool tensorflow::ops::EncodeJpeg::Attrs::progressive_ = false

جودة_

int64 tensorflow::ops::EncodeJpeg::Attrs::quality_ = 95

x_density_

int64 tensorflow::ops::EncodeJpeg::Attrs::x_density_ = 300

xmp_metadata_

StringPiece tensorflow::ops::EncodeJpeg::Attrs::xmp_metadata_ = ""

y_density_

int64 tensorflow::ops::EncodeJpeg::Attrs::y_density_ = 300

الوظائف العامة

تقليل دقة الألوان

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::ChromaDownsampling(
  bool x
)

انظر http://en.wikipedia.org/wiki/Chroma_subsampling .

القيمة الافتراضية هي صحيح

وحدة الكثافة

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::DensityUnit(
  StringPiece x
)

الوحدة المستخدمة لتحديد x_density و y_density : بكسل لكل بوصة ( 'in' ) أو سنتيمتر ( 'cm' ).

الوضع الافتراضي هو "in"

شكل

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Format(
  StringPiece x
)

تنسيق الصورة لكل بكسل.

القيمة الافتراضية هي ""

OptimizeSize

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::OptimizeSize(
  bool x
)

إذا كان هذا صحيحًا، فسيتم إنفاق موارد المعالج/ذاكرة الوصول العشوائي لتقليل الحجم دون أي تغيير في الجودة.

القيمة الافتراضية هي خطأ

تقدمي

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Progressive(
  bool x
)

إذا كانت القيمة صحيحة، فأنشئ صورة JPEG يتم تحميلها تدريجياً (من الخشن إلى الدقيق).

القيمة الافتراضية هي خطأ

جودة

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Quality(
  int64 x
)

جودة الضغط من 0 إلى 100 (الأعلى أفضل وأبطأ).

القيمة الافتراضية هي 95

إكس دينستي

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::XDensity(
  int64 x
)

عدد البكسلات الأفقية لكل وحدة كثافة.

القيمة الافتراضية هي 300

بيانات تعريف Xmp

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::XmpMetadata(
  StringPiece x
)

إذا لم تكن فارغة، فقم بتضمين بيانات تعريف XMP هذه في رأس الصورة.

القيمة الافتراضية هي ""

كثافة Y

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::YDensity(
  int64 x
)

عدد البكسلات العمودية لكل وحدة كثافة.

القيمة الافتراضية هي 300