Skip to main content
Version: 0.11.x

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​

readonly blendOpts: BlendMaskedOptions

How the filled region is blended back over the original pixels. See BlendMaskedOptions.

outInterpolation​

readonly outInterpolation: InterpolationMethod

Interpolation method used when resizing the filled frame back to input dimensions.

outNormalizeOpts​

readonly outNormalizeOpts: NormalizeOptions

Normalization options for postprocessing output tensors back to uint8 pixel values.

resizeMode​

readonly resizeMode: "stretch"

Resize mode for input images. Must be 'stretch'.