You are here: Start » Filter Reference » Image » Image Enhancement » InpaintImage_Telea
Module: | FoundationPro |
---|
Fills in a region of an image with pixel values interpolated from the borders of the area; uses fast marching method.
Applications
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRegionToInpaint | Region | ||
![]() |
inRange | Integer | 1 - +![]() |
Defines how far a pixel can be from one currently being inpainted to be considered in calculations |
![]() |
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
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 InpaintImage_Telea. |
DomainError | No pixels available at the edge of inRegionToInpaint in InpaintImage_Telea. |
Complexity Level
This filter is available on Advanced Complexity Level.
Filter Group
This filter is member of InpaintImage filter group.
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.