SubjectSegmenterOptions.SubjectResultOptions.Builder

  • SubjectSegmenterOptions.SubjectResultOptions.Builder is used to customize the output of the Subject Segmentation process.

  • It allows developers to enable a confidence mask, which provides pixel-level confidence values for the segmented subject.

  • It also allows developers to enable a subject bitmap, which provides a bitmap representation of the segmented subject.

  • The build() method is used to create an immutable instance of SubjectSegmenterOptions.SubjectResultOptions with the specified settings.

public static class SubjectSegmenterOptions.SubjectResultOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

SubjectSegmenterOptions.SubjectResultOptions
SubjectSegmenterOptions.SubjectResultOptions.Builder
enableConfidenceMask()
Enables confidence mask for segmented Subjects.
SubjectSegmenterOptions.SubjectResultOptions.Builder
enableSubjectBitmap()
Enables subject bitmap for segmented Subjects.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public SubjectSegmenterOptions.SubjectResultOptions.Builder enableConfidenceMask ()

Enables confidence mask for segmented Subjects.

Returns
  • this object, for chaining method calls

public SubjectSegmenterOptions.SubjectResultOptions.Builder enableSubjectBitmap ()

Enables subject bitmap for segmented Subjects.

Returns
  • this object, for chaining method calls