% Main Program
tStart = tic;
% Denoising

% Im=imread('barbara.png');
% Im=Im(201:400,301:500);
% Image_Denoising_Test(Im,20);
% 
% % Inpainting - random pattern
% 
% Im=imread('barbara256.png');
Im=imread('barbara_vyrez.png');
% Im=imread('foreman.tif');
% reconstr=zoner_ksvd(Im,0.25,10);
[reconstr,ob1,ob2]=extrapolate_ksvd(Im,6,1,[8,3]);
% [reconstr,obj1,obj2]=extrapolation(Im,25,2,[8,8]);
% Image_Inpainting_Test(Im,0.25,10); 
% Image_Inpainting_Test(Im,0.5,10); 
% Image_Inpainting_Test(Im,0.75,10); 
% IIT(Im,DCTdict,param);

% Inpainting - scratches

% Im=imread('peppers256.png');
%   Image_Inpainting_GUI(Im)

tElapsed = toc(tStart);