Package com.banuba.sdk.scene
Interface SegmentationMask
-
- All Known Implementing Classes:
SegmentationMask.CppProxy
public interface SegmentationMask
Class, which repesent neural networks segmentation mask texture interface. Subclass of image
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SegmentationMask.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Image
asImage()
SegmentationMaskType
getMaskType()
boolean
isActive()
void
setActive(boolean active)
set segmentation mask activity flag
-
-
-
Method Detail
-
getMaskType
@NonNull SegmentationMaskType getMaskType()
- Returns:
- segmentation mask type. Can be background, hair, skin, lips, l_eye, r_eye.
-
setActive
void setActive(boolean active)
set segmentation mask activity flag- Parameters:
active
- (bool): segmentation mask activity flag
-
isActive
boolean isActive()
- Returns:
- segmentation mask activity flag (bool).
-
asImage
@Nullable Image asImage()
- Returns:
- upcast to base type
-
-