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
Subjects
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 Subjects
from the input image.
Returns an empty list if multiple subjects are not enabled by
SubjectSegmenterOptions.Builder.enableMultipleSubjects(SubjectSegmenterOptions.SubjectResultOptions).