I = imread('tire.tif');
imshow(I)
f = inline('uint8(round(std(double(x))))');
I2 = colfilt(I,[3 3],'sliding',f);
figure, imshow(I2)