Back to Aurora Vision Library website

You are here: Start » Function Reference » Image » Image Enhancement » InpaintImage_Telea

InpaintImage_Telea


Header: AVL.h
Namespace: avl
Module: FoundationPro

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

Applications: Speculative setting of unknown (or unwanted) pixels. This version is trying to do this better than with simple interpolation.

Syntax

C++
C#
 
void avl::InpaintImage_Telea
(
	const avl::Image& inImage,
	const avl::Region& inRegionToInpaint,
	const int inRange,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
Input value inImage const Image& Input image
Input value inRegionToInpaint const Region&
Input value inRange const int 1 - + 6 Defines how far a pixel can be from one currently being inpainted to be considered in calculations
Output value outImage Image& Output image

Description

This filter inpaint a region of an image using the fast marching method. It is a simper version of InpaintImage_Bornemann in that it only uses the shape of the inpainting region and doesn't use structural information of the image.

Each inpainted pixel is filled with a color calculated as a weighted average of all already known (i.e. those outside of the inpainting range or those that were already) pixels withing a range specified by the parameter inRange. Using a higher range will result in smoother edges withing the inpainted region.

Examples

Comparison between low and high values of inRange. From the left: input, output with inRange = 4, output with inRange = 12

Errors

List of possible exceptions:

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

See Also

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