<< imhistequal Image Enhancement and Restoration immedian >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Image Enhancement and Restoration > iminpaint

iminpaint

Restores the selected region in an image using the region neighborhood

Syntax

imout = iminpaint(imin,mask,rad,method)

Parameters

imin :

Input Image

mask :

Input mask

rad :

Radius of a circular neighborhood of each point inpainted that is considered by the algorithm

method :

Inpainting method that could be either 0 --> Navier-Stokes based method or 1 --> Method by Alexandru Telea

imout :

Output Image

Description

The function 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 video.

Examples

S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
mask = imroi(S);
imout = iminpaint(S,mask,1,1);
imshow(S);
figure(); imshow(imout);

See also

Authors

Bibliography

1. http://en.wikipedia.org/wiki/Inpainting


Report an issue
<< imhistequal Image Enhancement and Restoration immedian >>