EncodeJpegVariableQuality

Stay organized with collections Save and categorize content based on your preferences.
public final class EncodeJpegVariableQuality

JPEG encode input image with provided compression quality.

`image` is a 3-D uint8 Tensor of shape `[height, width, channels]`. `quality` is an int32 jpeg compression quality value between 0 and 100.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<TString>
asOutput()
Returns the symbolic handle of the tensor.
Output<TString>
contents()
0-D.
static EncodeJpegVariableQuality
create(Scope scope, Operand<TUint8> images, Operand<TInt32> quality)
Factory method to create a class wrapping a new EncodeJpegVariableQuality operation.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "EncodeJpegVariableQuality"

Public Methods

public Output<TString> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public Output<TString> contents ()

0-D. JPEG-encoded image.

public static EncodeJpegVariableQuality create (Scope scope, Operand<TUint8> images, Operand<TInt32> quality)

Factory method to create a class wrapping a new EncodeJpegVariableQuality operation.

Parameters
scope current scope
images Images to adjust. At least 3-D.
quality An int quality to encode to.
Returns
  • a new instance of EncodeJpegVariableQuality