w=ones(31);
f=im2double(imread('test_pattern.tif'));
imshow(f,[ ])
pause

gd=imfilter(f,w);
figure, imshow(gd,[ ])
pixval
pause

gr=imfilter(f,w,'replicate');
figure, imshow(gr,[ ])
pause

gs=imfilter(f,w,'symmetric');
figure, imshow(gs,[ ])
pause

gc=imfilter(f,w,'circular');
figure, imshow(gc,[ ])
pause

f8=im2uint8(f);
g8r=imfilter(f8,w,'replicate');
figure, imshow(g8r,[ ])
pause

close all