To investigate the mean filter applied to a 5x5 image and find the output of the filter at pixel (2,2), we first create a sample 5x5 image in MATLAB and then apply a 3x3 average filter to it.
main.m398 chars16 lines
The output of the filter at pixel (2,2) after applying the 3x3 average is 32.2222
. The histogram of the image will be displayed as output.
You can run this code in MATLAB to see the results.
gistlibby LogSnag