@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.EncodeJpeg extends Pointer
image is a 3-D uint8 Tensor of shape [height, width, channels].
The attr format can be used to override the color format of the encoded
output. Values can be:
* '': Use a default format based on the number of channels in the image.
* grayscale: Output a grayscale JPEG image. The channels dimension
of image must be 1.
* rgb: Output an RGB JPEG image. The channels dimension
of image must be 3.
If format is not specified or is the empty string, a default format is picked
in function of the number of channels in image:
* 1: Output a grayscale image.
* 3: Output an RGB image.
Arguments:
* scope: A Scope object
* image: 3-D with shape [height, width, channels].
Optional attributes (see Attrs):
* format: Per pixel image format.
* quality: Quality of the compression from 0 to 100 (higher is better and slower).
* progressive: If True, create a JPEG that loads progressively (coarse to fine).
* optimize_size: If True, spend CPU/RAM to reduce size with no quality change.
* chroma_downsampling: See http://en.wikipedia.org/wiki/Chroma_subsampling.
* density_unit: Unit used to specify x_density and y_density:
pixels per inch ('in') or centimeter ('cm').
* x_density: Horizontal pixels per density unit.
* y_density: Vertical pixels per density unit.
* xmp_metadata: If not empty, embed this XMP metadata in the image header.
Returns:
* Output: 0-D. JPEG-encoded image.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.EncodeJpeg.Attrs
Optional attribute setters for EncodeJpeg
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
EncodeJpeg(Pointer p)
Pointer cast constructor.
|
EncodeJpeg(tensorflow.Scope scope,
tensorflow.Input image) |
EncodeJpeg(tensorflow.Scope scope,
tensorflow.Input image,
tensorflow.EncodeJpeg.Attrs attrs) |
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 EncodeJpeg(Pointer p)
Pointer.Pointer(Pointer).public EncodeJpeg(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input image)
public EncodeJpeg(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input image, @Const @ByRef tensorflow.EncodeJpeg.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.EncodeJpeg.Attrs Format(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.EncodeJpeg.Attrs Format(@tensorflow.StringPiece String x)
@ByVal public static tensorflow.EncodeJpeg.Attrs Quality(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.EncodeJpeg.Attrs Progressive(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.EncodeJpeg.Attrs OptimizeSize(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.EncodeJpeg.Attrs ChromaDownsampling(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.EncodeJpeg.Attrs DensityUnit(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.EncodeJpeg.Attrs DensityUnit(@tensorflow.StringPiece String x)
@ByVal public static tensorflow.EncodeJpeg.Attrs XDensity(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.EncodeJpeg.Attrs YDensity(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.EncodeJpeg.Attrs XmpMetadata(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.EncodeJpeg.Attrs XmpMetadata(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.EncodeJpeg operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output contents()
public tensorflow.EncodeJpeg contents(tensorflow.Output contents)
Copyright © 2019. All rights reserved.