I\'ve written code to smooth an image using a 3x3 averaging filter, however the output is strange, it is almost all black. Here\'s my code.
function [filtere
img = imread('img.bmp'); filtered = imfilter(double(img), ones(3) / 9, 'replicate'); imshow(uint8(filtered));