@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.EncodePng extends Pointer
image is a 3-D uint8 or uint16 Tensor of shape [height, width, channels]
where channels is:
* 1: for grayscale.
* 2: for grayscale + alpha.
* 3: for RGB.
* 4: for RGBA.
The ZLIB compression level, compression, can be -1 for the PNG-encoder
default or a value from 0 to 9. 9 is the highest compression level, generating
the smallest output, but is slower.
Arguments:
* scope: A Scope object
* image: 3-D with shape [height, width, channels].
Optional attributes (see Attrs):
* compression: Compression level.
Returns:
* Output: 0-D. PNG-encoded image.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.EncodePng.Attrs
Optional attribute setters for EncodePng
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
EncodePng(Pointer p)
Pointer cast constructor.
|
EncodePng(tensorflow.Scope scope,
tensorflow.Input image) |
EncodePng(tensorflow.Scope scope,
tensorflow.Input image,
tensorflow.EncodePng.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.EncodePng.Attrs |
Compression(long x) |
tensorflow.Output |
contents() |
tensorflow.EncodePng |
contents(tensorflow.Output contents) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.EncodePng |
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 EncodePng(Pointer p)
Pointer.Pointer(Pointer).public EncodePng(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input image)
public EncodePng(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input image, @Const @ByRef tensorflow.EncodePng.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.EncodePng.Attrs Compression(@Cast(value="tensorflow::int64") long x)
@ByRef public tensorflow.Operation operation()
public tensorflow.EncodePng operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output contents()
public tensorflow.EncodePng contents(tensorflow.Output contents)
Copyright © 2019. All rights reserved.