#include <image_ops.h>
Optional attribute setters for DecodeJpeg.
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) | TF_MUST_USE_RESULT Attrs The minimum required fraction of lines before a truncated input is accepted. |
Channels(int64 x) | TF_MUST_USE_RESULT Attrs Number of color channels for the decoded image. |
DctMethod(StringPiece x) | TF_MUST_USE_RESULT Attrs string specifying a hint about the algorithm used for decompression. |
FancyUpscaling(bool x) | TF_MUST_USE_RESULT Attrs If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only). |
Ratio(int64 x) | TF_MUST_USE_RESULT Attrs Downscaling ratio. |
TryRecoverTruncated(bool x) | TF_MUST_USE_RESULT Attrs If true try to recover an image from truncated input. |
float tensorflow::ops::DecodeJpeg::Attrs::acceptable_fraction_ = 1.0f
int64 tensorflow::ops::DecodeJpeg::Attrs::channels_ = 0
StringPiece tensorflow::ops::DecodeJpeg::Attrs::dct_method_ = ""
bool tensorflow::ops::DecodeJpeg::Attrs::fancy_upscaling_ = true
int64 tensorflow::ops::DecodeJpeg::Attrs::ratio_ = 1
bool tensorflow::ops::DecodeJpeg::Attrs::try_recover_truncated_ = false
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::AcceptableFraction( float x )
The minimum required fraction of lines before a truncated input is accepted.
Defaults to 1
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Channels( int64 x )
Number of color channels for the decoded image.
Defaults to 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::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 ""
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::FancyUpscaling( bool x )
If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only).
Defaults to true
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::Ratio( int64 x )
Downscaling ratio.
Defaults to 1
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeJpeg::Attrs::TryRecoverTruncated( bool x )
If true try to recover an image from truncated input.
Defaults to false
© 2018 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-jpeg/attrs.html