# NOT RUN {
I=lena_crop
## corrupt 30% of the image
out_corrupt=AddHoles(I,0.3)
I_corrupt=out_corrupt$corruptedImage
I_mask=out_corrupt$maskImage
## use ODCT dictionary
D0=ODCT(64,100)
## inpaint
out=inpaintImage(I_corrupt,I_mask,D0)
# }
Run the code above in your browser using DataLab