I want to solve the equation (2) in the attached picture which tells the local mean value. But i don't have any idea about how to evaluate this equation using matlab code. could only guess w indicates window size. What does g(m,n) means? Can anyone please help me to understand this concept?