InpaintImage


Fills in a region of an image with pixel values interpolated from the borders of the area.

Applications:Speculative setting of unknown (or unwanted) pixels. Usually used for preparing incomplete images for further processing.

Syntax

C++
C#
Python
 
def InpaintImage(
	ioImage: Image,
	inRegionToInpaint: ShapeRegion,
	/,
	*,
	inLambda: float = 0.5,
	inRoiAlignment: CoordinateSystem2D | None = None
)
-> None

Parameters

Name Type Range Default Description
Input will be modified ioImage Image
Input value inLambda float 0.0 - 1.0 0.5 Ratio between vertical and horizontal interpolation
Input value inRegionToInpaint ShapeRegion Region to be inpainted
Input value inRoiAlignment CoordinateSystem2D | None None Adjusts the region