public static abstract class
ImageSegmenter.SegmentationOptions.Builder
Builder for ImageSegmenter.SegmentationOptions
Public Constructors
Builder()
|
Public Methods
final ImageSegmenter.SegmentationOptions |
build()
Validates and builds the
ImageSegmenter.SegmentationOptions instance. |
abstract ImageSegmenter.SegmentationOptions.Builder | |
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 |
---|