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

ImageProperties.Builder

public static abstract class ImageProperties.Builder

Builder for ImageProperties. Different image objects may require different properties. See the detais below:

    TensorBuffer:
  • Mandatory proterties: height / width / colorSpaceType. The shape of the TensorBuffer object will not be used to determine image height and width.

Public Constructors

Public Methods

ImageProperties
build()
abstract ImageProperties.Builder
abstract ImageProperties.Builder
setHeight(int height)
abstract ImageProperties.Builder
setWidth(int width)

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public ImageProperties build ()

public abstract ImageProperties.Builder setColorSpaceType (ColorSpaceType colorSpaceType)

Parameters
colorSpaceType

public abstract ImageProperties.Builder setHeight (int height)

Parameters
height

public abstract ImageProperties.Builder setWidth (int width)

Parameters
width