ImageSegmenter.SegmentationOptions.Builder

public static abstract class ImageSegmenter.SegmentationOptions.Builder

Public Constructors

Public Methods

final ImageSegmenter.SegmentationOptions
build()
Validates and builds the ImageSegmenter.SegmentationOptions instance.
abstract ImageSegmenter.SegmentationOptions.Builder
setImageProcessingOptions(ImageProcessingOptions value)
Set the image processing options.
abstract ImageSegmenter.SegmentationOptions.Builder
setOutputHeight(int value)
Set the height of the output segmentation masks.
abstract ImageSegmenter.SegmentationOptions.Builder
setOutputWidth(int value)
Set the width of the output segmentation masks.

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public final ImageSegmenter.SegmentationOptions build ()

Validates and builds the ImageSegmenter.SegmentationOptions instance.

Throws
IllegalArgumentException if the ImageProcessingOptions specify a region-of-interest.

public abstract ImageSegmenter.SegmentationOptions.Builder setImageProcessingOptions (ImageProcessingOptions value)

Set the image processing options.

Parameters
value

public abstract ImageSegmenter.SegmentationOptions.Builder setOutputHeight (int value)

Set the height of the output segmentation masks.

Parameters
value

public abstract ImageSegmenter.SegmentationOptions.Builder setOutputWidth (int value)

Set the width of the output segmentation masks.

Parameters
value