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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRegionToInpaint | Region | |||
![]() |
inRange | int | 1 - +![]() |
Defines how far a pixel can be from one currently being inpainted to be considered in calculations | |
![]() |
inPreSmoothing | float | 0.0 - ![]() |
Standard deviation of a gaussian kernel used before inpainting calculations | |
![]() |
inPostSmoothing | float | 0.0 - ![]() |
Standard deviation of a gaussian kernel used after initial inpainting calculations | |
![]() |
inSharpness | float | 0.0 - ![]() |
Desired sharpness of edges inside of the inpainted region (higher = sharper) | |
![]() |
inLuminanceMode | LuminanceMode | Determines how the luminance of the input image will be computed | ||
![]() |
outImage | Image | Output image |



