ImagenRawMask

@PublicPreviewAPI
public final class ImagenRawMask extends ImagenMaskReference


Represents a mask for Imagen editing. This image should contain only black and white pixels, with black representing parts of the image which should not change.

Summary

Public constructors

Public constructors

ImagenRawMask

public ImagenRawMask(@NonNull ImagenInlineImage mask, Double dilation)
Parameters
@NonNull ImagenInlineImage mask

the mask image

Double dilation

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.