Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image » Image Enhancement » ExpaintImage_Bornemann

ExpaintImage_Bornemann


Module: FoundationPro

Speculatively sets pixel values outside of a region using the fast marching method and coherence analysis.

Name Type Range Description
inImage Image Input image
inRegionToExpaint Region Part of the image to be expainted
inExpaintingRadius Integer 1 - + How far to expaint from the region
inRange Integer 1 - + Defines how far a pixel can be from one currently being inpainted to be considered in calculations
inPreSmoothing Real 0.0 - Standard deviation of a gaussian kernel used before inpainting calculations
inPostSmoothing Real 0.0 - Standard deviation of a gaussian kernel used after initial inpainting calculations
inSharpness Real 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

Description

This filter expaints a region of an image by inExpaintingRadius pixels using the fast marching method and coherence flow analysis.

A detailed description of this method can be found here: InpaintImage_Bornemann.

Examples

Input image

From the left: output with inRange = 4, output with inRange = 12

From the left: output with inPreSmoothing = 1, output with inPreSmoothing = 3

From the left: output with inPostSmoothing = 1, output with inPostSmoothing = 6

From the left: output with inSharpness = 25, output with inSharpness = 100

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Expainting region (inRegionToExpaint) exceeds the image in ExpaintImage_Bornemann.
DomainError No pixels available at the edge of inRegionToExpaint in ExpaintImage_Bornemann.

Complexity Level

This filter is available on Expert Complexity Level.

Filter Group

This filter is member of ExpaintImage filter group.

See Also

  • InpaintImage – Fills in a region of an image with pixel values interpolated from the borders of the area.
  • InpaintImage_Telea – Fills in a region of an image with pixel values interpolated from the borders of the area; uses fast marching method.
  • 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.
  • ExpaintImage_Telea – Speculatively sets pixel values outside of a region using the fast marching method.