@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class 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 |
DecodePng.Attrs
Optional attribute setters for DecodePng
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DecodePng(Pointer p)
Pointer cast constructor.
|
DecodePng(Scope scope,
Input contents) |
DecodePng(Scope scope,
Input contents,
DecodePng.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static DecodePng.Attrs |
Channels(long x) |
static DecodePng.Attrs |
Dtype(int x) |
Output |
image() |
DecodePng |
image(Output setter) |
Node |
node() |
Operation |
operation() |
DecodePng |
operation(Operation setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public DecodePng(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static DecodePng.Attrs Channels(@Cast(value="tensorflow::int64") long x)
@ByVal public static DecodePng.Attrs Dtype(@Cast(value="tensorflow::DataType") int x)
Copyright © 2022. All rights reserved.