clear all; clc; 

%% LAPLACE METHOD%%
%%TIM HAINES%%

a=imread('Map.jpg','jpg');%Imports Image
imshow(a) %Displaces map to be processed
figure(1)
map=rgb2gray(a); %Creates Matrix Map to be manipulated
figure(2)
imshow(map)
i=2;
j=2;
[I,J]=size(map)
%% DIFFERENTIATION 1

while (i<I);
    while(j<J);
        map(i,j)=((map(i+1,j)+map(i-1,j)+map(i,j+1)+map(i,j-1))/4);
        j=j+1;
    end
    i=i+1;
    j=2;
end


figure(3)
imshow(map)




%% LOOK INTO COLOR MAP!!!!%%
