ImagenBackgroundMask

@PublicPreviewAPI
class ImagenBackgroundMask : ImagenMaskReference


A generated mask image which will auto-detect and mask out the background. The background will be white, and the foreground black

Summary

Public constructors

Public constructors

ImagenBackgroundMask

ImagenBackgroundMask(dilation: Double? = null)
Parameters
dilation: Double? = null

the amount to dilate the mask. This can help smooth the borders of an edit and make it seem more convincing. For example, 0.05 will dilate the mask 5%.