Inpainting

This program applies inpainting to the image selected from the dropdown menu. The selected image first has randomly selected pixel values set to zero, so that it looks as if it had been blasted by a shotgun. Under the assumption that its 2-D Haar wavelet transform is sparse (mostly zero-valued), ISTA is applied to reconstruct the image from its deteriorated version. See Chapter 7. Set the IMAX slide to 100 to allow the ISTA algorithm to converge.

Sliders: fraction of pixel values f, threshold λ, and #ISTA iterations IMAX.
Displayed: Original image, deteriorated image, and inpainted image.

1. Original image
2. Deteriorated image

lambda: 0.01
IMAX: 20
f: 0.7

3. Reconstructed image