SubjectSegmenterOptions.SubjectResultOptions.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
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 Methods
Enables confidence mask for segmented Subject
s.
Returns
- this object, for chaining method calls
Enables subject bitmap for segmented Subject
s.
Returns
- this object, for chaining method calls
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eSubjectSegmenterOptions.SubjectResultOptions.Builder\u003c/code\u003e is used to customize the output of the Subject Segmentation process.\u003c/p\u003e\n"],["\u003cp\u003eIt allows developers to enable a confidence mask, which provides pixel-level confidence values for the segmented subject.\u003c/p\u003e\n"],["\u003cp\u003eIt also allows developers to enable a subject bitmap, which provides a bitmap representation of the segmented subject.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method is used to create an immutable instance of \u003ccode\u003eSubjectSegmenterOptions.SubjectResultOptions\u003c/code\u003e with the specified settings.\u003c/p\u003e\n"]]],["The `SubjectResultOptions.Builder` class provides methods to configure options for subject segmentation. It offers a `build()` method to create `SubjectResultOptions`. Users can enable specific features using `enableConfidenceMask()` to obtain confidence masks or `enableSubjectBitmap()` to get subject bitmaps. Both enable methods return the builder object, allowing for method chaining. The class also inherits standard methods from `java.lang.Object`.\n"],null,["# SubjectSegmenterOptions.SubjectResultOptions.Builder\n\npublic static class **SubjectSegmenterOptions.SubjectResultOptions.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nBuilder class for [SubjectSegmenterOptions.SubjectResultOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions). \n\n### Public Constructor Summary\n\n|---|---------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder#Builder())() |\n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SubjectSegmenterOptions.SubjectResultOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions) | [build](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder#build())() |\n| [SubjectSegmenterOptions.SubjectResultOptions.Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder) | [enableConfidenceMask](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder#enableConfidenceMask())() Enables confidence mask for segmented [Subject](/android/reference/com/google/mlkit/vision/segmentation/subject/Subject)s. |\n| [SubjectSegmenterOptions.SubjectResultOptions.Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder) | [enableSubjectBitmap](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder#enableSubjectBitmap())() Enables subject bitmap for segmented [Subject](/android/reference/com/google/mlkit/vision/segmentation/subject/Subject)s. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public **Builder** ()\n\nPublic Methods\n--------------\n\n#### public [SubjectSegmenterOptions.SubjectResultOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions) **build** ()\n\n#### public [SubjectSegmenterOptions.SubjectResultOptions.Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder) **enableConfidenceMask** ()\n\nEnables confidence mask for segmented [Subject](/android/reference/com/google/mlkit/vision/segmentation/subject/Subject)s. \n\n##### Returns\n\n- this object, for chaining method calls \n\n#### public [SubjectSegmenterOptions.SubjectResultOptions.Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder) **enableSubjectBitmap** ()\n\nEnables subject bitmap for segmented [Subject](/android/reference/com/google/mlkit/vision/segmentation/subject/Subject)s. \n\n##### Returns\n\n- this object, for chaining method calls"]]