inpaint: Reconstruct Image Region from Region Neighborhood

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/draw.R

Description

inpaint reconstructs the selected image area from the pixel near the area boundary. The function may be used to remove dust and scratches from a scanned photo, or to remove undesirable objects from still images or videos.

Usage

1
inpaint(image, mask, radius = 5, method = "NS")

Arguments

image

An Image object.

mask

An 8-bit single-channel Image object. The region to be reconstructed should be white.

radius

Radius of the circular neighborhood of each point inpainted that is considered by the algorithm (default: 5).

method

The inpainting method to be used. It can only be one of the following:

  • "NS": Navier-Stokes based method (the default).

  • "Telea": Alexandru Telea's method.

Value

An Image object.

Author(s)

Simon Garnier, garnier@njit.edu

References

Telea, A. (2004). An image inpainting technique based on the fast marching method. Journal of graphics tools. doi: 10.1080/10867651.2004.10487596.

See Also

Image, selectROI

Examples

1
# TODO

neuroconductor-devel-releases/Rvision documentation built on Oct. 27, 2020, 1:16 p.m.