AI-generated Key Takeaways
-
Subject represents a segmented subject from an input image.
-
It provides methods to retrieve the masked bitmap, confidence mask, height, width, and starting coordinates of the subject.
-
Accessing the masked bitmap and confidence mask is conditional on being enabled in the SubjectSegmenterOptions.
A segmented subject from the input image by SubjectSegmenter.
Public Method Summary
| Bitmap | getBitmap() Returns the masked bitmap for this subject. |
| FloatBuffer | getConfidenceMask() Returns the confidence mask for this subject. |
| int | getHeight() Returns the height of this subject. |
| int | getStartX() Returns the starting x-coordinate of this subject in the input image. |
| int | getStartY() Returns the starting y-coordinate of this subject in the input image. |
| int | getWidth() Returns the width of this subject. |
Inherited Method Summary
Public Methods
public Bitmap getBitmap ()
Returns the masked bitmap for this subject.
Returns null if it is not enabled by SubjectSegmenterOptions.SubjectResultOptions.Builder.enableSubjectBitmap()
public FloatBuffer getConfidenceMask ()
Returns the confidence mask for this subject.
Returns null if it is not enabled by SubjectSegmenterOptions.SubjectResultOptions.Builder.enableConfidenceMask()
public int getHeight ()
Returns the height of this subject.
public int getStartX ()
Returns the starting x-coordinate of this subject in the input image.
public int getStartY ()
Returns the starting y-coordinate of this subject in the input image.
public int getWidth ()
Returns the width of this subject.