clear all
close all
load oplw.mat
Y=y*64;
figure(1)
colormap('gray')
image(Y)
pause(2)
%faltningsvecktor i x-led 
xfalt=[0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2];
%faltningsvektor i y-led, sätt till 1 vid rörelseoskärpa
yfalt=[1 1 1];
z=conv2(yfalt,xfalt,y);
zmax=max(max(z));
Z=z*64/zmax;
figure(2)
colormap('gray')
image(Z)
