ImageSegmenter.SegmentationOptions.Builder

public abstract class ImageSegmenter.SegmentationOptions.Builder


Builder for SegmentationOptions

Summary

Public constructors

Public methods

final ImageSegmenter.SegmentationOptions

Validates and builds the SegmentationOptions instance.

abstract ImageSegmenter.SegmentationOptions.Builder

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.

Public constructors

Builder

public Builder()

Public methods

build

public final ImageSegmenter.SegmentationOptions build()

Validates and builds the SegmentationOptions instance.

Throws
java.lang.IllegalArgumentException

if the ImageProcessingOptions specify a region-of-interest.

setImageProcessingOptions

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

Set the image processing options.

setOutputHeight

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

Set the height of the output segmentation masks.

setOutputWidth

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

Set the width of the output segmentation masks.