Class DecodeJpeg.Options

java.lang.Object
org.tensorflow.op.image.DecodeJpeg.Options
Enclosing class:
DecodeJpeg

public static class DecodeJpeg.Options extends Object
Optional attributes for DecodeJpeg
  • Method Details

    • channels

      public DecodeJpeg.Options channels(Long channels)
      Sets the channels option.
      Parameters:
      channels - Number of color channels for the decoded image.
      Returns:
      this Options instance.
    • ratio

      public DecodeJpeg.Options ratio(Long ratio)
      Sets the ratio option.
      Parameters:
      ratio - Downscaling ratio.
      Returns:
      this Options instance.
    • fancyUpscaling

      public DecodeJpeg.Options fancyUpscaling(Boolean 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

      public DecodeJpeg.Options tryRecoverTruncated(Boolean tryRecoverTruncated)
      Sets the tryRecoverTruncated option.
      Parameters:
      tryRecoverTruncated - If true try to recover an image from truncated input.
      Returns:
      this Options instance.
    • acceptableFraction

      public DecodeJpeg.Options acceptableFraction(Float acceptableFraction)
      Sets the acceptableFraction option.
      Parameters:
      acceptableFraction - The minimum required fraction of lines before a truncated input is accepted.
      Returns:
      this Options instance.
    • dctMethod

      public DecodeJpeg.Options dctMethod(String 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.