please help me solve this Matlab question
Let fbe a 2D digital image. Each pixel of the image can be replaced by the average of pixels in a square window surrounding the given pixel resulting to new image g such that g(m,n)-f (m-,-1)+ f (m-1,n)+ f (m-1,n+1) +f(m,n-1)+f (m,n)+f(m,n+1) Write a matlab user-defined function to implement the above routine. Now use the function you have created to restore the
OR
OR