inpaintcv

Restores the input handle.

Syntax

R = inpaintcv(handle, mask, radiaus, type)

Inputs

handle
Handle of an image.
Type: integer
mask
Handle of a 8-bit, single channel image, scalar or a 2D real matrix. If mask is an image handle or 2D matrix, the size must match that of handle.
Type: scalar | matrix
radius
Radius of the neighborhood of each point in handle that need to be reconstructed.
Type: scalar
type
Method used for reconstruction. Valid values are:
0
Type cv::INPAINT_NS - Navier-Stokes based method
1
Type cv::INPAINT_TELEA - Telea algorithm
Type: integer

Outputs

R
Handle of the output image.
Type: integer

Example

Reconstruct an image:

source = imreadcv('image1.jpg');
mask = imreadcv('image2.jpg');
radius = 3;
type = 1;
R = inpaintcv(source, mask, radius, type);