AI-generated Key Takeaways
-
SubjectSegmenterOptions.Builder
is used to configure options for subject segmentation. -
It allows enabling foreground bitmap, foreground confidence mask, and multiple subjects in the segmentation results.
-
A custom
Executor
can be set for processing, otherwise, an internal thread pool is used. -
The
build()
method creates aSubjectSegmenterOptions
instance based on the builder's configurations.
Builder class for
SubjectSegmenterOptions
.
Public Constructor Summary
Builder()
|
Public Method Summary
SubjectSegmenterOptions |
build()
|
SubjectSegmenterOptions.Builder |
enableForegroundBitmap()
Enables foreground bitmap in
SubjectSegmentationResult .
|
SubjectSegmenterOptions.Builder |
enableForegroundConfidenceMask()
Enables foreground confidence mask in
SubjectSegmentationResult .
|
SubjectSegmenterOptions.Builder |
enableMultipleSubjects(SubjectSegmenterOptions.SubjectResultOptions
options)
Enables multiple subjects in
SubjectSegmentationResult .
|
SubjectSegmenterOptions.Builder |
Inherited Method Summary
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