AI-generated Key Takeaways
-
SubjectSegmentationResult
provides the output of a subject segmentation operation. -
It offers access to a masked bitmap of the foreground, highlighting the segmented subject.
-
A foreground confidence mask provides pixel-level probabilities of belonging to the foreground.
-
It can return a list of segmented subjects if enabled through
SubjectSegmenterOptions
.
Result of SubjectSegmentation
.
Public Method Summary
Bitmap |
getForegroundBitmap()
Returns the masked bitmap for the input image.
|
FloatBuffer |
getForegroundConfidenceMask()
Returns the foreground confidence mask for the input image.
|
List<Subject> |
getSubjects()
Returns all segmented
Subject s
from the input image.
|
Inherited Method Summary
Public Methods
public Bitmap getForegroundBitmap ()
Returns the masked bitmap for the input image.
Returns null if it is not enabled by
SubjectSegmenterOptions.Builder.enableForegroundConfidenceMask()
public FloatBuffer getForegroundConfidenceMask ()
Returns the foreground confidence mask for the input image.
Returns null if it is not enabled by
SubjectSegmenterOptions.Builder.enableForegroundConfidenceMask()
public List<Subject> getSubjects ()
Returns all segmented Subject
s
from the input image.
Returns an empty list if multiple subjects are not enabled by
SubjectSegmenterOptions.Builder.enableMultipleSubjects(SubjectSegmenterOptions.SubjectResultOptions)
.