i created this function in order to to partially blur an image :
function [ T ] = floutage(I,XA,YA,XB,YB)
H=fspecial('average',[11 11]);
t=0;
for i=XA:XB
for j=YA:YB
t=imfilter(I(i,j),H) ;
I(i,j)=t;
end
end
T=I;
end
and i call it in the script like this :
T1=floutage(Iref,10,10,350,350);
figure
imshow(T1);
but the result is no bluring but a black box :


