SubjectSegmentationResult

public class SubjectSegmentationResult extends Object

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

Object
clone()
boolean
equals(Object arg0)
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

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).