Type Alias: InpainterOptions
InpainterOptions =
Omit<ImagePreprocessorOptions,"resizeMode"|"padValue"> &object
Defined in: extensions/cv/tasks/inpainting.ts:41
Options for configuring the inpainting preprocessor and postprocessor. The image goes through the shared image preprocessor; the mask is always area-resized and re-binarized, so a model pixel is part of the hole when any of the photo pixels it covers is.
Type Declaration
blendOpts
readonlyblendOpts:BlendMaskedOptions
How the filled region is blended back over the original pixels. See BlendMaskedOptions.
outInterpolation
readonlyoutInterpolation:InterpolationMethod
Interpolation method used when resizing the filled frame back to input dimensions.
outNormalizeOpts
readonlyoutNormalizeOpts:NormalizeOptions
Normalization options for postprocessing output tensors back to uint8 pixel values.
resizeMode
readonlyresizeMode:"stretch"
Resize mode for input images. Must be 'stretch'.