Restores the selected region in an image using the region neighborhood
imout = iminpaint(imin,mask,rad,method)
Input Image
Input mask
Radius of a circular neighborhood of each point inpainted that is considered by the algorithm
Inpainting method that could be either 0 --> Navier-Stokes based method or 1 --> Method by Alexandru Telea
Output Image
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.
1. http://en.wikipedia.org/wiki/Inpainting