@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.DecodeJpeg extends Pointer
channels indicates the desired number of color channels for the
decoded image.
Accepted values are:
* 0: Use the number of channels in the JPEG-encoded image.
* 1: output a grayscale image.
* 3: output an RGB image.
If needed, the JPEG-encoded image is transformed to match the requested number
of color channels.
The attr ratio allows downscaling the image by an integer factor during
decoding. Allowed values are: 1, 2, 4, and 8. This is much faster than
downscaling the image later.
This op also supports decoding PNGs and non-animated GIFs since the interface is
the same, though it is cleaner to use tf.image.decode_image.
Arguments:
* scope: A Scope object
* contents: 0-D. The JPEG-encoded image.
Optional attributes (see Attrs):
* channels: Number of color channels for the decoded image.
* ratio: Downscaling ratio.
* fancy_upscaling: If true use a slower but nicer upscaling of the
chroma planes (yuv420/422 only).
* try_recover_truncated: If true try to recover an image from truncated input.
* acceptable_fraction: The minimum required fraction of lines before a truncated
input is accepted.
* dct_method: 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:
* Output: 3-D with shape [height, width, channels]..| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.DecodeJpeg.Attrs
Optional attribute setters for DecodeJpeg
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
DecodeJpeg(Pointer p)
Pointer cast constructor.
|
DecodeJpeg(tensorflow.Scope scope,
tensorflow.Input contents) |
DecodeJpeg(tensorflow.Scope scope,
tensorflow.Input contents,
tensorflow.DecodeJpeg.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.DecodeJpeg.Attrs |
AcceptableFraction(float x) |
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.DecodeJpeg.Attrs |
Channels(long x) |
static tensorflow.DecodeJpeg.Attrs |
DctMethod(BytePointer x) |
static tensorflow.DecodeJpeg.Attrs |
DctMethod(String x) |
static tensorflow.DecodeJpeg.Attrs |
FancyUpscaling(boolean x) |
tensorflow.Output |
image() |
tensorflow.DecodeJpeg |
image(tensorflow.Output image) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.DecodeJpeg |
operation(tensorflow.Operation operation) |
static tensorflow.DecodeJpeg.Attrs |
Ratio(long x) |
static tensorflow.DecodeJpeg.Attrs |
TryRecoverTruncated(boolean x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic DecodeJpeg(Pointer p)
Pointer.Pointer(Pointer).public DecodeJpeg(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input contents)
public DecodeJpeg(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input contents, @Const @ByRef tensorflow.DecodeJpeg.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.DecodeJpeg.Attrs Channels(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.DecodeJpeg.Attrs Ratio(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.DecodeJpeg.Attrs FancyUpscaling(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.DecodeJpeg.Attrs TryRecoverTruncated(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.DecodeJpeg.Attrs AcceptableFraction(float x)
@ByVal public static tensorflow.DecodeJpeg.Attrs DctMethod(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.DecodeJpeg.Attrs DctMethod(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.DecodeJpeg operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output image()
public tensorflow.DecodeJpeg image(tensorflow.Output image)
Copyright © 2019. All rights reserved.