Class DecodeJpeg.Options
java.lang.Object
org.tensorflow.op.image.DecodeJpeg.Options
- Enclosing class:
DecodeJpeg
Optional attributes for
DecodeJpeg-
Method Summary
Modifier and TypeMethodDescriptionacceptableFraction(Float acceptableFraction) Sets the acceptableFraction option.Sets the channels option.Sets the dctMethod option.fancyUpscaling(Boolean fancyUpscaling) Sets the fancyUpscaling option.Sets the ratio option.tryRecoverTruncated(Boolean tryRecoverTruncated) Sets the tryRecoverTruncated option.
-
Method Details
-
channels
Sets the channels option.- Parameters:
channels- Number of color channels for the decoded image.- Returns:
- this Options instance.
-
ratio
Sets the ratio option.- Parameters:
ratio- Downscaling ratio.- Returns:
- this Options instance.
-
fancyUpscaling
Sets the fancyUpscaling option.- Parameters:
fancyUpscaling- If true use a slower but nicer upscaling of the chroma planes (yuv420/422 only).- Returns:
- this Options instance.
-
tryRecoverTruncated
Sets the tryRecoverTruncated option.- Parameters:
tryRecoverTruncated- If true try to recover an image from truncated input.- Returns:
- this Options instance.
-
acceptableFraction
Sets the acceptableFraction option.- Parameters:
acceptableFraction- The minimum required fraction of lines before a truncated input is accepted.- Returns:
- this Options instance.
-
dctMethod
Sets the dctMethod option.- Parameters:
dctMethod- 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.)- Returns:
- this Options instance.
-