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
another option:
f = @(x) mean(x(:)); filtered_img = nlfilter(noisy_img,[3 3],f);