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を指定するために使用される単位:1インチあたりのピクセル数( '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
密度単位あたりの垂直ピクセル数。

公開属性

クロマダウンサンプリング

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_metadata_

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を指定するために使用される単位:1インチあたりのピクセル数( '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です。