inpaintcv
Restores the input handle.
Syntax
R = inpaintcv(handle, mask, radiaus, type)
Inputs
- handle
- Handle of an image.
- 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.
- radius
- Radius of the neighborhood of each point in handle that need to be reconstructed.
- type
-
Method used for reconstruction. Valid values are:
- 0
- Type cv::INPAINT_NS - Navier-Stokes based method
- 1
- Type cv::INPAINT_TELEA - Telea algorithm
Outputs
- R
- Handle of the output image.
Example
source = imreadcv('image1.jpg');
mask = imreadcv('image2.jpg');
radius = 3;
type = 1;
R = inpaintcv(source, mask, radius, type);