テンソルフロー::作戦:: EncodeJpeg::属性

#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
True の場合、CPU/RAM を消費して、品質を変更せずにサイズを削減します。
Progressive (bool x)
TF_MUST_USE_RESULT Attrs
True の場合、段階的に (粗いものから細かいものまで) 読み込まれる 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_ダウンサンプリング_

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_密度_

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

xmp_メタデータ_

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

y_密度_

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を参照してください。

デフォルトは true

密度単位

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
)

ピクセルごとの画像形式。

デフォルトは「」です

サイズの最適化

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

True の場合、CPU/RAM を消費して、品質を変更せずにサイズを削減します。

デフォルトは false

プログレッシブ

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

True の場合、段階的に (粗いものから細かいものまで) 読み込まれる JPEG を作成します。

デフォルトは false

品質

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

圧縮の品質は 0 から 100 までです (高いほど良く、遅くなります)。

デフォルトは95

X密度

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