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)
|
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.
|
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
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::AcceptableFraction( float x )
The minimum required fraction of lines before a truncated input is accepted.
Defaults to 1
Channels
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::Channels( int64 x )
Number of color channels for the decoded image.
Defaults to 0
DctMethod
TF_MUST_USE_RESULT 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
TF_MUST_USE_RESULT 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
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::Ratio( int64 x )
Downscaling ratio.
Defaults to 1
TryRecoverTruncated
TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeAndCropJpeg::Attrs::TryRecoverTruncated( bool x )
If true try to recover an image from truncated input.
Defaults to false