资 源 简 介
inpainting.m
%
% The MATLAB implementation of inpainting algorithm by A. Criminisi (2004)
%
% Inputs:
% - origImg original image or corrupted image
% - mask implies target region (1 denotes target region)
% - psz: patch size (odd scalar). If psz=5, patch size is 5x5.
%
% Outputs:
% - inpaintedImg The inpainted image; an MxNx3 matrix of doubles.
% - C MxN matrix of confidence values accumulated over all iterations.
% - D MxN matrix of data term values accumulated over all iterations.
% - fillMovie A Matlab movie struct depicting the fill region over time.
%
% Example:
% [i1,c,