I have an image in MATLAB:
y = rgb2gray(imread(\'some_image_file.jpg\'));
and I want to do some processing on it:
pic = som
bw = pic > imdilate(pic, [1 1 1; 1 0 1; 1 1 1]);