I = imread('tire.tif');
f = inline('uint8(round(std2(x)))');
I2 = nlfilter(I,[3 3], f);
imshow(I)
figure, imshow(I2)