W3cubDocs

/TensorFlow C++

tensorflow::ops::DecodeAndCropJpeg::Attrs

#include <image_ops.h>

Optional attribute setters for DecodeAndCropJpeg.

Summary

Public attributes
acceptable_fraction_ = 1.0f
float
channels_ = 0
int64
dct_method_ = ""
StringPiece
fancy_upscaling_ = true
bool
ratio_ = 1
int64
try_recover_truncated_ = false
bool
Public functions
AcceptableFraction(float x)
The minimum required fraction of lines before a truncated input is accepted.
Channels(int64 x)
Number of color channels for the decoded image.
DctMethod(StringPiece x)
string specifying a hint about the algorithm used for decompression.
FancyUpscaling(bool x)
If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only).
Ratio(int64 x)
Downscaling ratio.
TryRecoverTruncated(bool x)
If true try to recover an image from truncated input.

Public attributes

acceptable_fraction_

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

channels_

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

dct_method_

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

fancy_upscaling_

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

ratio_

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

try_recover_truncated_

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

Public functions

AcceptableFraction

Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::AcceptableFraction(
  float x
)

The minimum required fraction of lines before a truncated input is accepted.

Defaults to 1

Channels

Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::Channels(
  int64 x
)

Number of color channels for the decoded image.

Defaults to 0

DctMethod

Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::DctMethod(
  StringPiece x
)

string specifying a hint about the algorithm used for decompression.

Defaults to "" which maps to a system-specific default. Currently valid values are ["INTEGER_FAST", "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal jpeg library changes to a version that does not have that specific option.)

Defaults to ""

FancyUpscaling

Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::FancyUpscaling(
  bool x
)

If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only).

Defaults to true

Ratio

Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::Ratio(
  int64 x
)

Downscaling ratio.

Defaults to 1

TryRecoverTruncated

Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::TryRecoverTruncated(
  bool x
)

If true try to recover an image from truncated input.

Defaults to false

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/decode-and-crop-jpeg/attrs.html