@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.DecodePng 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 PNG-encoded image.
* 1: output a grayscale image.
* 3: output an RGB image.
* 4: output an RGBA image.
If needed, the PNG-encoded image is transformed to match the requested number
of color channels.
This op also supports decoding JPEGs 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 PNG-encoded image.
Optional attributes (see Attrs):
* channels: Number of color channels for the decoded image.
Returns:
* Output: 3-D with shape [height, width, channels].| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.DecodePng.Attrs
Optional attribute setters for DecodePng
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
DecodePng(Pointer p)
Pointer cast constructor.
|
DecodePng(tensorflow.Scope scope,
tensorflow.Input contents) |
DecodePng(tensorflow.Scope scope,
tensorflow.Input contents,
tensorflow.DecodePng.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.DecodePng.Attrs |
Channels(long x) |
static tensorflow.DecodePng.Attrs |
Dtype(int x) |
tensorflow.Output |
image() |
tensorflow.DecodePng |
image(tensorflow.Output image) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.DecodePng |
operation(tensorflow.Operation operation) |
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 DecodePng(Pointer p)
Pointer.Pointer(Pointer).public DecodePng(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input contents)
public DecodePng(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input contents, @Const @ByRef tensorflow.DecodePng.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.DecodePng.Attrs Channels(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.DecodePng.Attrs Dtype(@Cast(value="tensorflow::DataType") int x)
@ByRef public tensorflow.Operation operation()
public tensorflow.DecodePng operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output image()
public tensorflow.DecodePng image(tensorflow.Output image)
Copyright © 2019. All rights reserved.