ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

ImageProcessor.Builder

public static class ImageProcessor.Builder

The Builder to create an ImageProcessor, which could be executed later.

Public Constructors

Public Methods

Builder<TensorImage>
add(Operator<T> op)
ImageProcessor.Builder
add(TensorOperator op)
Adds a TensorOperator into the Operator chain.
ImageProcessor.Builder
add(ImageOperator op)
Adds an ImageOperator into the Operator chain.
ImageProcessor
build()
Completes the building process and gets the ImageProcessor instance.

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public Builder<TensorImage> add (Operator<T> op)

Parameters
op

public ImageProcessor.Builder add (TensorOperator op)

Adds a TensorOperator into the Operator chain. In execution, the processor calls TensorImage.getTensorBuffer() to transform the TensorImage by transforming the underlying TensorBuffer.

Parameters
op the Operator instance to be executed then

public ImageProcessor.Builder add (ImageOperator op)

Adds an ImageOperator into the Operator chain.

Parameters
op the Operator instance to be executed then

public ImageProcessor build ()

Completes the building process and gets the ImageProcessor instance.