SubjectSegmenterOptions.Builder

public static class SubjectSegmenterOptions.Builder extends Object

Builder class for SubjectSegmenterOptions.

Public Constructor Summary

Public Method Summary

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public Builder ()

Public Methods

public SubjectSegmenterOptions build ()

public SubjectSegmenterOptions.Builder enableForegroundBitmap ()

Enables foreground bitmap in SubjectSegmentationResult.

Returns
  • this object, for chaining method calls

public SubjectSegmenterOptions.Builder enableForegroundConfidenceMask ()

Enables foreground confidence mask in SubjectSegmentationResult.

Returns
  • this object, for chaining method calls

public SubjectSegmenterOptions.Builder enableMultipleSubjects (SubjectSegmenterOptions.SubjectResultOptions options)

Enables multiple subjects in SubjectSegmentationResult.

Returns
  • this object, for chaining method calls

public SubjectSegmenterOptions.Builder setExecutor (Executor executor)

Sets the custom Executor to use. If no Executor is set, an internal background thread pool will be used.

Most clients should not need to call this method.

Parameters
executor the Executor to use
Returns
  • this object, for chaining method calls