tensorflow:: ops:: DecodeJpeg:: Attrs

#include <image_ops.h>

DecodeJpegのオプション属性設定子。

まとめ

公開属性

acceptable_fraction_ = 1.0f
float
channels_ = 0
int64
dct_method_ = ""
StringPiece
fancy_upscaling_ = true
bool
ratio_ = 1
int64
try_recover_truncated_ = false
bool

公的機能

AcceptableFraction (float x)
TF_MUST_USE_RESULT Attrs
入力が途中で途切れた場合でも受け入れられるために必要な最小行数。
Channels (int64 x)
TF_MUST_USE_RESULT Attrs
デコードされた画像のカラーチャンネル数。
DctMethod (StringPiece x)
TF_MUST_USE_RESULT Attrs
解凍に使用されるアルゴリズムに関するヒントを指定する文字列。
FancyUpscaling (bool x)
TF_MUST_USE_RESULT Attrs
もしそうであれば、クロマプレーン(yuv420/422のみ)のアップスケーリングは遅くなりますが、よりきれいに仕上がります。
Ratio (int64 x)
TF_MUST_USE_RESULT Attrs
縮小率。
TryRecoverTruncated (bool x)
TF_MUST_USE_RESULT Attrs
もし条件が満たされるなら、切り詰められた入力画像から画像を復元しようと試みる。

公開属性

許容可能な割合

float tensorflow::ops::DecodeJpeg::Attrs::acceptable_fraction_ = 1.0f

チャンネル_

int64 tensorflow::ops::DecodeJpeg::Attrs::channels_ = 0

dct_method_

StringPiece tensorflow::ops::DecodeJpeg::Attrs::dct_method_ = ""

ファンシーアップスケーリング

bool tensorflow::ops::DecodeJpeg::Attrs::fancy_upscaling_ = true

比率_

int64 tensorflow::ops::DecodeJpeg::Attrs::ratio_ = 1

try_recover_truncated_

bool tensorflow::ops::DecodeJpeg::Attrs::try_recover_truncated_ = false

公的機能

許容分数

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::AcceptableFraction(
  float x
)

入力が途中で途切れた場合でも受け入れられるために必要な最小行数。

デフォルト値は1です

チャンネル

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Channels(
  int64 x
)

デコードされた画像のカラーチャンネル数。

デフォルト値は0です

Dctメソッド

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::DctMethod(
  StringPiece x
)

解凍に使用されるアルゴリズムに関するヒントを指定する文字列。

デフォルト値は「」で、これはシステム固有のデフォルト値に対応します。現在有効な値は["INTEGER_FAST", "INTEGER_ACCURATE"]です。ヒントは無視される場合があります(例:内部のjpegライブラリが、その特定のオプションを持たないバージョンに変更された場合)。

デフォルトは ""

ファンシーアップスケーリング

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::FancyUpscaling(
  bool x
)

もしそうであれば、クロマプレーン(yuv420/422のみ)のアップスケーリングは遅くなりますが、よりきれいに仕上がります。

デフォルトはtrue

比率

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Ratio(
  int64 x
)

縮小率。

デフォルト値は1です

TryRecoverTruncate

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::TryRecoverTruncated(
  bool x
)

もし条件が満たされるなら、切り詰められた入力画像から画像を復元しようと試みる。

デフォルトはfalse