# Drawing in images

I want to develop a procedure to remove some inpainted text from images, i.e. I have to estimate the inpainted pixels. I will do that with first an imputation step and then applying SVD (and perhaps later further improvements).

The imputations step just have to give an initial guess of the inpainted pixels. I thought of applying a gaussian filter to get estimates of the inpainted pixels, but I think this does not give good results.

Does somebody know another way to get good inital guesses, i.e. imputations?

• Are you aware that googleing for "inpainting matlab" will return lots of hits for very sophisticated inpainting algorithms? Commented May 1, 2014 at 9:33
• Here's a survey article to get you started.
– Emre
Commented May 1, 2014 at 23:01
• I would have a look at blind source separation tutorials and this dsp question for the inpainting. Commented Oct 29, 2014 at 13:55

• Thank you very much. Proposal 1: In matlab I have the following code for a gaussian filter: function f=gaussian2d(N,sigma) [x y]=meshgrid(round(-N/2):round(N/2), round(-N/2):round(N/2)); f=exp(-x.^2/(2*sigma^2)-y.^2/(2*sigma^2)); f=f./sum(f(:)); Then I can apply convolution, e.g. filtered_signal=conv2(image,gaussian2d(N,sig),'same'); How can I assign null weight to any inpainted pixel? My images are 512x512 pixels and I have a mask of same size for determining where the inpainting is. I.e. the mask is 1 everywhere where an inpainting is and otherwise 0. Commented May 1, 2014 at 9:27