InpaintImage_Bornemann


Fills in a region of an image with pixel values interpolated from the borders of the area; uses fast marching method and coherence analysis.

Applications:Speculative setting of unknown (or unwanted) pixels. This version is giving the best results among reasonably fast traditional methods.

Syntax

C++
C#
Python
 
def InpaintImage_Bornemann(
	inImage: Image,
	inRegionToInpaint: Region,
	inRange: int,
	inPreSmoothing: float,
	inPostSmoothing: float,
	inSharpness: float,
	inLuminanceMode: LuminanceMode,
	outImage: Image,
	/
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRegionToInpaint Region
Input value inRange int 1 - + Defines how far a pixel can be from one currently being inpainted to be considered in calculations
Input value inPreSmoothing float 0.0 - Standard deviation of a gaussian kernel used before inpainting calculations
Input value inPostSmoothing float 0.0 - Standard deviation of a gaussian kernel used after initial inpainting calculations
Input value inSharpness float 0.0 - Desired sharpness of edges inside of the inpainted region (higher = sharper)
Input value inLuminanceMode LuminanceMode Determines how the luminance of the input image will be computed
Output value outImage Image Output image